Reto Merz
2017-01-18 13:35:31 UTC
Hello,
Is there any documentation or a public available working example how to use -XaddExports for WebStart apps ?
I have no acces to the example mentioned in JDK-8153077.
We try this:
<j2se version="1.8+" java-vm-args="-XaddExports:java.base/sun.security.action=ALL-UNNAMED"/>
and also this:
<resources>
<j2se version="1.8+"/>
[..]
<property name="addExports" value="java.base/sun.security.action=ALL-UNNAMED"/>
</resources>
In both cases WebStart throws a IAE. All our JARs are signed and JNLP also request all-permissions.
Tested with Java 9 b152 and Windows 7. Java Webstart Console output:
Java Web Start 12.0.0.0
Using JRE version 9-ea+152 Java HotSpot(TM) 64-Bit Server VM
JRE expiration date: 11.07.17, 00:00
User home directory = C:\Users\Administrator
[..]
#### Java Web Start Error:
#### java.lang.IllegalAccessError: class ch.abacus.Java9Test (in unnamed module @0x4ab3b734) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x4ab3b734
Thanks
Reto Merz
Is there any documentation or a public available working example how to use -XaddExports for WebStart apps ?
I have no acces to the example mentioned in JDK-8153077.
We try this:
<j2se version="1.8+" java-vm-args="-XaddExports:java.base/sun.security.action=ALL-UNNAMED"/>
and also this:
<resources>
<j2se version="1.8+"/>
[..]
<property name="addExports" value="java.base/sun.security.action=ALL-UNNAMED"/>
</resources>
In both cases WebStart throws a IAE. All our JARs are signed and JNLP also request all-permissions.
Tested with Java 9 b152 and Windows 7. Java Webstart Console output:
Java Web Start 12.0.0.0
Using JRE version 9-ea+152 Java HotSpot(TM) 64-Bit Server VM
JRE expiration date: 11.07.17, 00:00
User home directory = C:\Users\Administrator
[..]
#### Java Web Start Error:
#### java.lang.IllegalAccessError: class ch.abacus.Java9Test (in unnamed module @0x4ab3b734) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x4ab3b734
Thanks
Reto Merz