• Post Reply Bookmark Topic Watch Topic
  • New Topic

pass parameter bye javaws

 
mickey hendrix
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello...
how can I set a vm paramter like -Dsomevariable for my swing client application that I download by javaws?
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your JNLP, you add the argument to the application-desc element
 
Sudeep Agrawal
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try the property tag in the JNLP ?
<property name = "someName" value ="myValue">

the way you can access it is System.getProperty("someName") in the Java code .
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!