This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • 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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic