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)
java 7 update 45 webstart applications are not receiving properties
-
01-07-2022 - |
문제
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?
해결책
다른 팁
Faced the same issue while upgrading our application from java 1.6 to 1.8 Solution is:
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"
- Get system properties in the main method of the Main class passed in the jnlp template.
- 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);