I have three applications that I deploy using Java Web Start for clients. All three of these applications use JAXB. In Java 1.9, to load the jaxb module, you should use:
--add-modules java.xml.bind
Java Web Start lets you pass VM arguments to applications with the java-vm-args attribute of the java / j2se tag. However, only the arguments listed in the documentation are supported, and is --add-modules
not on this list .
So, the question is, how do you transfer "--add-modules java.xml.bind"
to 1.9 VM when you run code through Java Web Start that uses JAXB?
Here is what I tried, and my testing shows that -add-modules is really not supported by the java-vm-arg attribute:
<resources>
<property name="jnlp.packEnabled" value="true"/>
<java version="9" java-vm-args="--add-modules java.xml.bind"/>
<java version="1.8+"/>
<jar href="redacted.jar"/>
</resources>