New to Java here. I have a java project on netbeans using maven. I am trying to add javafx to my project.
I added the following to my pom.xml file :
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx</artifactId>
<version>15</version>
<type>pom</type>
</dependency>
But when i try and build my project in netbeans I get this error (tsInfluence is the class which contains the main method that is trying to call jfx):
Error: LinkageError occurred while loading main class com.ts.tsInfluence.tsInfluence
java.lang.ClassFormatError: Invalid superclass index 0 in class file com/ts/tsInfluence/tsInfluence
Command execution failed.