I recently installed Oracle JDK 1.8 on my Kubuntu Linux machine following this guide. I did the manual install because I couldn't get the easy one to work.
If I've understood correctly, javafx should be included on the default classpath after installing Oracle JDK 1.8. This is not the case for me: I need to manually add the jfxrt.jar
file to the classpath for each new project.
Java -version
in terminal gives:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
How can I fix this so that jfxrt.jar
is always on the default classpath?
CLASSPATH
. Check my answer for details. – Faizan Akram Dar Apr 16 '15 at 10:20javac -version
. – Puce Apr 16 '15 at 10:30