문제

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?

도움이 되었습니까?

해결책

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)

다른 팁

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);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top