Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of jfxrt.jar on Mac OS X

Tags:

macos

javafx-2

I'm trying to compile/run some JavaFX code. On my PC I reference: C:/Program Files/Oracle/JavaFX 2.1 SDK/rt/lib/jfxrt.jar

My understanding is that JavaFX is included in JDK 7 on Mac OS x but I cannot find jfxrt.jar in: /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/

like image 452
DD. Avatar asked Dec 06 '25 19:12

DD.


1 Answers

Edit (Nov 2019): Currently OpenJDK doesn't include OpenJFX. Some OpenJDK providers include OpenJFX into their installation. For the rest, you can use maven or gradle to include it into your projects.


Java7: jre/lib/jfxrt.jar

Java8: jre/lib/ext/jfxrt.jar

you can find it using find $JAVA_HOME -name jfxrt.jar


Since Java9 there is no jfxrt.jar, it's now a set of modules:

./jmods/javafx.base.jmod
./jmods/javafx.media.jmod
./jmods/javafx.swing.jmod
./jmods/javafx.controls.jmod
./jmods/javafx.web.jmod
./jmods/javafx.fxml.jmod
./jmods/javafx.graphics.jmod
like image 173
Sergey Grinev Avatar answered Dec 10 '25 23:12

Sergey Grinev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!