Forum Stats

  • 3,728,151 Users
  • 2,245,559 Discussions
  • 7,853,355 Comments

Discussions

passing parameters to a jar file in a shell script

1035002
1035002 Member Posts: 312

Hello,

I have a jar file, when run from command line asks for two parameter, say username and password. I would like to call this jar file in a shell script but, how do I pass the username and password to it in the script?

$java -jar startApps.jar

username:

password:

Thank you,

This discussion has been closed.