Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jfxrt.jar not in JDK 1.8?

Tags:

java

linux

javafx

I just updated my JDK to the JDK 1.8 because i couldnt find the jfxrt.jar needed by java FX in the 1.7 version.

I downloaded the JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Specifically the version: jdk-8u5-linux-i586.rpm

I use opensuse 13.1 by the way.

Now after the installation my usr/java/jdk1.9_05/lib still does not contain the jfxrt.jar.

Has anybody an idea why, I read that this version should actually contain it. Can I fix this problem putting the jar in ther manually?

like image 382
Jakob Abfalter Avatar asked May 19 '14 20:05

Jakob Abfalter


People also ask

Is JavaFX included in Java 11?

For JDK 11 and later releases, Oracle has open sourced JavaFX. You can find more information at OpenJFX project.

Where is my JavaFX path?

The default installation location is C:\Program Files\JavaFX\javafx-sdk- version.

Where is JavaFX Linux?

JavaFX is now available from openjfx.io or the public Maven repository as an SDK or a library set, or a module set.


3 Answers

For me on OSX it's under jdk1.8.0_05.jdk/Contents/Home/jre/lib/ext/jfxrt.jar. I'd guess it's in an analogous place on your machine. Try /usr/java/jdk1.8.0_05/jre/lib/ext/jfxrt.jar

like image 154
awksp Avatar answered Oct 13 '22 18:10

awksp


Am using linuxmint 18.1 and i had the same issue. i realized that the open jdk i had didn't have the jfxrt.jar library. Download another jdk from oracle and then install it. Remember to change the path in the netbeans.conf file in the netbeans installation folder.

like image 1
wkijedi Avatar answered Oct 13 '22 19:10

wkijedi


From the above comments, i tried this.

I added jfxrt.jar(Downloaded JDK) to PC. In eclipse, right click project --> properties --> Libraries --> Add external jar and choose the jar file.

The error went away.

like image 1
user1753356 Avatar answered Oct 13 '22 19:10

user1753356