Is anything special needed to run JavaFX applications on OSX?

I have an application that I wrote using JavaFX, which works fine on Windows and Linux. However, on OSX, the application starts (indicated in the process list), but the GUI never appears. It is launched from another application that ensures its relevance using the standard convention "java -cp <all necessary libraries, including jfxrt.jar> <main-class> <args>"

Is there something I am missing that OSX needs to make JavaFX work correctly?

+3
source share
1 answer

The smbarbour command line used to launch the application includes the location jfxrt.jar:

/usr/lib/jvm/java-7-oracle/jre/lib/jfxrt.jar

EulerGeek answer JavaFX 2.0 ( ), X, :

java -cp ".:/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/jfxrt.jar" <app class>

jdk1.7.0_09.jdk java, , Java 8 ( jfxrt.jar ).

, Java 8, , (, JavaFX ant tasks, javafxpackager, javafx-maven-plugin javafx- gradle -plugin).

0

All Articles