I am looking to restrict the RIA application to java version 7 and 8.
<resources os="Windows">
<j2se version="1.7*,1.8*" initial-heap-size="512m" max-heap-size="512m" />
</resources>
I am trying to do something like the above. My goal is to see if user has java 7 or 8 installed and run the application with the available version. If the user has anything 1.9 and above, the application should not run.
Is this possible, if so, what is the correct syntax to specify the versions?
From the documentation:
"The j2se/java element specifies what Java Platform Standard Edition Runtime Environment (JRE) versions an application is supported on, as well as standard parameters to the Java Virtual Machine. If several JREs are specified, this indicates a prioritized list of the supported JREs, with the most preferred version first."
<java version="1.8" initial-heap-size="512m" max-heap-size="512m" href="http://java.sun.com/products/autodl/j2se"/>
<java version="1.7" initial-heap-size="512m" max-heap-size="512m"/>
Also note when an href attribute is specified, a vendor-specific JRE is requested (oracle in this case). If you do not want that or that an installation routine pops up (when there is no corresponding jre installed) then remove the href="http://java.sun.com/products/autodl/j2se"
link...
You might also try JaNeLa from andrew which verifies your JNLP file...