Tuesday, December 08, 2009

JNLP and Stupid Parameters

To limit a time of headbanging solving weird JNLP descriptor behavior while passing properties to your app, remember that they are called "secure", i.e. starts from "jnlp." or "javaws." prefix. That means that <property name="foo" value="bar"/> won't work, while <property name="javaws.foo" value="bar"/> will.

Read them with System.getProperty("javaws.foo"); — as usual.

No comments: