Build JavaFX 2.0 application on Mac, deploy on Windows

What are your strategies for building a JavaFX application on Mac and deploying it on Windows? I'm currently having issues with how to link my application so that it is a double-click on both platforms. I tried using ant -tools, but the jar file created complains that JavaFX 2.1 needs to be installed on my Mac (how can I put the JavaFX 2.1 DP distribution so that the bi-directional Jar knows where to find it?)

On the Windows side, Java7u3 is installed, which “comes with Java FX 2.0.3.” I need the application to be able to work as a double-click JAR file here.

Any suggestions on how this is configured? I use Maven to create my project. The more details you can provide, the better.

+1
source share
1 answer

Starting with version 2.1, the only (official) way to install JavaFX on a Mac is to install cobundle with Java 7u4 (opposite to the preview versions of developers published in zip archives).

If JavaFX on Mac was installed this way, then the jar with JavaFX can be launched by double-clicking.

On Windows, the same double-click jar will ask you to set the "JavaFX runtime" and will start if it is already present.

NB: in version 2.2, Mac / Linux will start supporting the launch of jnlp (WebStart) (already supported on Windows), which may suit you even better.

+2

All Articles