JavaFX 2 is highly dependent on native code. For my desktop application, I would like to choose the best JavaFX flavor match for each supported OS to make the installation on target systems as painless as possible.
Since JavaFX 2 comes with several Ant tasks to help with the deployment, I thought that was the way to go, but I seemed to be at a dead end.
The deploy
task creates a JNLP file that includes a resource reference that invokes the JavaFX installer:
<resources> <jfx:javafx-runtime version="2.1+" ref="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/> </resources>
This, obviously, will not work on OSes other than Windows, possibly even on 32-bit Windows. According to the JNLP doc , OS- specific resource choices are possible:
<resources os="SunOS" arch="sparc"> ... </resources>
However, I cannot understand the URLs for different platforms. Are they documented somewhere? Is there any other way to achieve my goal?
Please note that a similar question already exists, but it is limited to the 32/64-bit part of the problem and remains unanswered.
source share