javax.net.ssl.keyStore file not finding truststore from classpath
843811May 23 2004 — edited May 26 2004I 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