6

I tried to build the application using javafx ant build, generated jar file. But when I run the jar file, issue:

Error: JavaFX runtime components are missing, and are required to run this application.

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

Running the JAR file using:

java -jar app.jar 

What could it be?

Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
Vova Shelgunov
  • 159
  • 3
  • 8

1 Answers1

-1

I was able to reproduce your issue on windows machine (with java8 64bit version).

One simple work around could be: try reinstalling java again.

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

Balaji Dubey
  • 446
  • 5
  • 10