• Post Reply Bookmark Topic Watch Topic
  • New Topic

How could I put multiple properties in java command line?  RSS feed

 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked at the instruction page, but can't find out. Uses "java -Dname1-value -Dname2=value2" or any other ways? Thanks for help.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you just want to send arguments to the main method?
 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. I want to pass my keystore file name/password.
 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. I want to pass in my keystore file name/password.
 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it by a test run. you can put multiple -D.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!