1 Reply Latest reply: Apr 5, 2012 12:37 PM by 817264 RSS

    user.timezone in jnlp

    928681
      Hi,

      I tried using the following to set timezone but din't work . It always takes the system time but not the one set in jnlp.

      <j2se version="1.6*&1.6.0_05+"
      java-vm-args="-Xms64m -Xmx512m -Dsun.java2d.noddraw=true"
      href="http://java.sun.com/products/autodl/j2se"/>
           <property name="sun.java2d.noddraw" value="true" />
           <property name="user.timezone" value="Canada/Central" />

      Can you please tell me what I am doing wrong? Is there any alternative way to set timezone? Sending it as java args also din't work.

      Thanks,
      Mahathi
        • 1. Re: user.timezone in jnlp
          817264
          Unsigned applets and webstart applications can only set selected "secure" properties.
          See
          http://docs.oracle.com/javase/tutorial/deployment/applet/security.html
          or webstart developer guide:
          http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html#resources
          (look for decryption of property tag)

          To pass insecure property you can sign your application (including JNLP file).
          Please see http://www.oracle.com/technetwork/java/javase/index-142562.html#COMMAND_LINE_ARGS and JNLP spec.

          List of secure properties is being revisited from time to time to include more properties if there are good use cases and security audit considers them secure.
          If you feel user.timezone should be available for unsigned apps (personally i do not see why not) then please file an RFE on Java and explain why you think this property is useful to overwrite in JNLP.