So, im trying to run JavaFX and ND4J together using JavaFX. I don't see why there should be any problem with this, as they are just separate dependencies. However, I tried the following:
-Running JavaFX:compile works fine
-Running JavaFX:run throws the following error
Can't extract module name from nd4j-native-1.0.0-beta5.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-windows-x86_64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-ios-x86_64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-android-arm.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-linux-x86_64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-linux-armhf.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-android-x86_64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-android-x86.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-ios-arm64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-android-arm64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-macosx-x86_64.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-api-1.0.0-beta5.jar: nd4j.native.api: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-platform-1.0.0-beta5.jar: nd4j.native.platform: Invalid module name: 'native' is not a Java identifier
Can't extract module name from nd4j-native-1.0.0-beta5-linux-ppc64le.jar: nd4j.native: Invalid module name: 'native' is not a Java identifier
Some dependencies encountered issues while attempting to be resolved as modules and will not be included in the classpath; you can change this behavior via the 'includePathExceptionsInClasspath' configuration parameter.
This is my pom.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>TEST</groupId>
<artifactId>test-main</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.nd4j/nd4j-api -->
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-platform</artifactId>
<version>1.0.0-beta5</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>11</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.3</version>
<configuration>
<mainClass>src.main.java.sample/main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
Using Java 11 and IntelliJ.
I'm not really sure why this is happening, as it compiles fine. Any help would be much appreciated, thanks!