Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have experienced the same issue and managed to solve it by doing following:</p> <p><strong>In all manifest files (for each JAR in your RCP project) add these attributes:</strong></p> <pre><code>Application-Name: My App Name Permissions: all-permissions Codebase: * Application-Library-Allowable-Codebase: * Caller-Allowable-Codebase: * Trusted-Library: true </code></pre> <p>Second part of solution is to <strong>make jnlp properties secure by adding jnlp prefix</strong>. I have found solution <a href="http://www.eclipse.org/forums/index.php/t/552636/" rel="nofollow">here</a>. You need to <strong>do this for framework properties</strong> (osgi, eclipse..) <strong>and for your properties</strong> E.g. instead of:</p> <pre><code>&lt;property name="eclipse.product" value="com.amdosoft.oct.ui.product"/&gt; &lt;property name="osgi.instance.area" value="@user.home/Application Data/myApp"/&gt; &lt;property name="osgi.configuration.area" value="@user.home/Application Data/myApp"/&gt; &lt;property name="my.App.property" value="someValue"/&gt; </code></pre> <p>use </p> <pre><code>&lt;property name="jnlp.eclipse.product" value="com.amdosoft.oct.ui.product"/&gt; &lt;property name="jnlp.osgi.instance.area" value="@user.home/Application Data/myApp"/&gt; &lt;property name="jnlp.osgi.configuration.area" value="@user.home/Application Data/myApp"/&gt; &lt;property name="jnlp.my.App.property" value="someValue"/&gt; </code></pre> <p><strong>Download eclipse launcher with sources from <a href="http://grepcode.com/snapshot/repository.grepcode.com/java/eclipse.org/3.6/org.eclipse.equinox/launcher/1.1.0/" rel="nofollow">here</a></strong></p> <p><strong>In web start launcher you need to change back property names to old values</strong> (without jnlp prefix). You can do that by adding this part of source into main method of WebStartLauncher class.</p> <pre><code>Properties properties = System.getProperties(); // copy properties to avoid ConcurrentModificationException Properties copiedProperties = new Properties(); copiedProperties.putAll(properties); Set&lt;Object&gt; keys = copiedProperties.keySet(); for (Object key : keys) { if (key instanceof String) { String keyString = (String) key; if (keyString.startsWith("jnlp.")) { // re set all properties starting with the jnlp-prefix // and set them without the prefix String property = System.getProperty(keyString); String replacedKeyString = keyString.replaceFirst("jnlp.", ""); System.setProperty(replacedKeyString, property); } } } </code></pre> <p><strong>Export you new launcher as runnable JAR</strong> and put it in the same directory where your JNLP file is located.</p> <p><strong>Edit JNLP file</strong> by adding this line:</p> <pre><code>&lt;jar href="myAppLauncher.jar"/&gt; </code></pre> <p>inside tag and edit your application-desc tag like this:</p> <pre><code>&lt;application-desc main-class="org.eclipse.equinox.launcher.WebStartMain"&gt; &lt;/application-desc&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload