java.io.FileNotFoundException (The system cannot find the path specified)
- by xenom
I get this exception when I want to open a keystore
java.io.FileNotFoundException: \resources\keystore (The system cannot find the path specified)
Basically my application is like
src/
client.java
server.java
resources/
keystore
truststore
And the faulty code :
System.setProperty("javax.net.ssl.keyStore","/resources/keystore");
System.setProperty("javax.net.ssl.keyStorePassword", "ebanking");
I also tried ./resources/keystore, resources/keystore, \\resources\\keystore etc..
My application is supposed to work in an executable jar so no absolute path technique please.