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?
Asked
Active
Viewed 6,587 times
0
-
1Assuming 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 Answers
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
-
1Though if all your "ifs" are true, there is no reason you would need to do that. – James_D Jan 23 '16 at 02:03
-