Monday, April 28, 2014

How to pass parameters to your webstart?

Add properties in the JNLP file itself, like so

<resources> 
<j2se version="1.7+" />  
... 
...  
<property name="prop1" value="value1"/> 
<property name="prop2" value="value2"/>  
</resources>

and then call it in your code, like so

System.getProperty("prop1"); 

No comments:

Post a Comment