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/
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With