How to get JNLP to download the correct version of JavaFX 2?

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.

+6
source share
1 answer

Jnlp and plugin modes are only supported on Windows in current JavaFX 2.1

Mac / Linux runtime is planned to be added in version 2.2. You can try preview packages: http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html

+4
source

Source: https://habr.com/ru/post/914715/


All Articles