Mistake. JavaFX Environment Components are missing and this application requires

I tried to build my app using javafx ant build, generated jar file. But when I run the jar file it gives out:

Error: JavaFX environment components are missing and they should run this application.

javafx-class-path: libs/h2.jar libs/jfxrt.jar libs/log4j.jar

Running a JAR file with:

java -jar app.jar 

      

What could it be?

+4
java javafx-2 ant


source to share


1 answer


I was able to reproduce your problem on a Windows machine (with java8 64 bit).

One simple job might be: try installing java again.



Another could be: copying jre / lib / jfxrt.jar to jre / lib / ext / jfxrt.jar

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics