Skip to Main Content

Java Database Connectivity (JDBC)

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 password from shell script to Java

843859Apr 5 2007 — edited Apr 9 2007
Hi there,

I have a shell script which has user id and password stored in variables. I call a java program from this shell script. I tried accessing this environment variable from java using system.getproperty and java is not getting the values. I have used export USERID PASSWORD
and java classname to call it.

I do not want to pass it as arguments because of security reasons. can anybody help me please.

Thanks a bunch.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2007
Added on Apr 5 2007
6 comments
674 views