0

I have installed eclipse luna on a computer and tried to load one of my project. However impossible to run my project, I got a JNI error

Error: A JNI error has occured, please check your installation and try again

It is not possible to import javafx.application, javafx.scene and javafx.stage.

I don't understand JDK8 is installed by default and I have 1.8 as JDK compliance in my compiler. What can I do to solve my problem? Add a javafx.jar to my java build path??

Thanks for your help!

vmicrobio
  • 103
  • 1
  • 10
  • Which JDK are you using? Oracle? OpenJDK? And which platform? – James_D Feb 15 '18 at 15:13
  • java-8-openjdk-amd64 – vmicrobio Feb 15 '18 at 15:35
  • You need to install (and possibly build) JavaFX separately. See https://stackoverflow.com/questions/18547362/javafx-and-openjdk/19529820 and https://stackoverflow.com/questions/28142746/is-javafx-supported-in-openjdk, also https://wiki.openjdk.java.net/display/OpenJFX/Main – James_D Feb 15 '18 at 16:09
  • thanks for your answer! I built javaFX separately. Now my javafx import are ok! However I still can't run my app: 'Exception in thread "main" java.lang.IllegalArgumenException: expected file name as argument at com.sun.javafx.css.parser.Css2Bin.main(Css2Bin.java:40)' – vmicrobio Feb 16 '18 at 12:24

0 Answers0