0

I am trying to write java class which extends Application. But, it is not appearing when I search for javafx.application.Application. Could not fix this error even after updating JDK.
Can somebody guide me to fix this?

James_D
  • 201,275
  • 16
  • 291
  • 322
Hung
  • 79
  • 2
  • 8
  • 1
    Assuming you are using Java 8, this may be a duplicate of http://stackoverflow.com/questions/22812488/using-javafx-in-jre-8/32062263#32062263. You probably need to provide more details about your setup. – James_D Jan 23 '16 at 01:29
  • Also make sure your Eclipse project is actually using the JDK you recently installed. – James_D Jan 23 '16 at 02:04

1 Answers1

0

If you are on Windows, and you have Java 8, and it still does not work, you can just add the jar file to the project.

In your JDK folder, under /jre/lib, there is a jar called jfxrt.jar.
So, on Windows, the full path is (something like):
C:\Program Files\Java\jdk...\jre\lib\jfxrt.jar

huskyd97
  • 447
  • 5
  • 18