Question

I have an application which use webstart where the properties are passed on as . But since i upgraded my jre to update 45, its no longer working. It was working fine with update 40. I donot see anything in the revision history which might have broken this.

When i searched on http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html, i can see that i might have to start the property name with "javaws." or "jnlp.". I have a large number of properties (~50). Is this the only way in which i can make it work? (If yes, its a bit strange that the revision history donot mention this). Is this is way in which properties are being handled in javaws?

Was it helpful?

Solution

As suggested here you will either have to prefix the properties with jnlp or javaws, or you need to sign the jnlp (place an exact copy of your jnlp named APPLICATION.JNLP in the JNLP-INF directory of the jar that contains the main class, before signing the jar)

OTHER TIPS

Faced the same issue while upgrading our application from java 1.6 to 1.8 Solution is:

  1. add jnlp as a prefix to the property name passed in the jnlp template

    property name="dev.env" value="DEV" change to property name="jnlp.dev.env" value="DEV"

  2. Get system properties in the main method of the Main class passed in the jnlp template.
  3. If original property parameter in code was dev.env then just get the Jnlp properties and set it to the older one

String devProps= System.getProperty("jnlp.dev.env"); System.setProperty("dev.env",devProps);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top