Page tree
Skip to end of metadata
Go to start of metadata

In Java 9+ the core parts of Java were split into modules and accessing them required new permissions. As EditLive! was written before the module system it requires quite a few permissions to run as shown in this sample JNLP file.

JNLP sample
<?xml version="1.0" encoding="utf-8"?> 
<jnlp spec="1.0+" codebase="http://host/path/to/jlnp/" href="yourapp.jnlp">
  <information>
    <title>Jnlp Example</title>
    <vendor>Company Name</vendor>
    <homepage href="http://example.com" />
    <description>Example of a JNLP file for EditLive!</description>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <java version="1.8+" java-vm-args="--add-exports=java.desktop/sun.swing=ALL-UNNAMED --add-exports=java.desktop/sun.swing.table=ALL-UNNAMED --add-exports=java.desktop/sun.swing.plaf.synth=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.tree=ALL-UNNAMED --add-opens=java.desktop/java.awt.event=ALL-UNNAMED --add-exports=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED --add-exports=java.desktop/sun.awt.shell=ALL-UNNAMED --add-exports=java.desktop/com.sun.awt=ALL-UNNAMED --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text=ALL-UNNAMED  --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED  --add-opens=java.desktop/javax.swing.text.html.parser=ALL-UNNAMED"/>
    <!-- Note as normal for Java Web Start you must have signed all the jars with the same key -->
    <jar href="yourapp.jar" />
    <jar href="editlivejava.jar" />
  </resources>
  <application-desc main-class="YourMainClass" />
</jnlp>


  • No labels