java.io.FileNotFoundException (The system cannot find the path specified)
Posted
by
xenom
on Stack Overflow
See other posts from Stack Overflow
or by xenom
Published on 2012-12-06T10:56:56Z
Indexed on
2012/12/06
11:04 UTC
Read the original article
Hit count: 202
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.
© Stack Overflow or respective owner