• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing Command line args

 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I pass command line arguements via java web start when my application is launched? For example, if I could execute a jar file manually using:
java -jar runme.jar server
the String "server" would be at args[0] in the main class.
This works fine manually, but I'm not sure how to specify the "server" string as an arguement using webstart.
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
you can pass arguments by inserting the arguments tag:

cheers
chantal
 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chantal that worked!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic