• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing property arguements

 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to set a property in my JNLP file based on an arguement that gets passed via command line when the script is launched. How can I do this?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ronnie
so do u mean arguments that u pass to ur application 's main method in String[] args?
u can use,
<application-desc main-class="Main">
<argument>arg1</argument>
<argument>arg2</argument>
</application-desc>
sort of thing in ur .jnlp file.
this
might be more helpful
regards
maulin
 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks but that's not what I mean. I know how to do that. What I want to do is pass arguements to the JNLP file like this:

runmyapp.jnlp arg1 arg2

Is there a way of doing this?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't think there is a way to do it.
regards
maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic