Skip to Main Content

Java Security

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!

javax.net.ssl.keyStore file not finding truststore from classpath

843811May 23 2004 — edited May 26 2004
I am setting truststore using system setProperty like
System.setProperty("javax.net.ssl.trustStore","myTrustStore.p12"); //Path to trustStore .
& I am keeping myTrustStore.p12 file in a jar & that jar s in the classpath. But surpassingly that file is not being picked up by jvm. I am always getting following exception

java.lang.RuntimeException: myTrustStore.p12 (The system cannot find the file specified)

if I am giving full path for myTrustStore.p12 then it is working absolutely ok.
Does setProperty not picks up files from classpath?
Thnaks so Much
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2004
Added on May 23 2004
2 comments
4,178 views