Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing parameters to a jar file in a shell script

1035002Mar 1 2018 — edited Mar 1 2018

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,

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 29 2018
Added on Mar 1 2018
0 comments
1,006 views