Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » KeyStore doesn't load new stores
KeyStore doesn't load new stores [message #1281575] Tue, 01 April 2014 03:47 Go to next message
hromoyDron hromoyDron is currently offline hromoyDron hromoyDronFriend
Messages: 1
Registered: April 2014
Junior Member
Hello!

I create a new keystore and a new cert by KeyTool in Eclipse.
I see my keystore and all certs in it in special window.

But when I try to load keystore to class object:
 
String ksName = "herong.jks";
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(new FileInputStream(ksName), ksPass);


it says:
"herong.jks (No such file or directory)"

I simply create a keystore,maybe i should do something else?
Re: KeyStore doesn't load new stores [message #1281895 is a reply to message #1281575] Tue, 01 April 2014 14:33 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
You need to put the herong.jks file in the working directory of your application or include the appropriate pathing to allow it to be found.
Previous Topic:Eclipse forgets compiler compliance level
Next Topic:Java 8 javac -profile option
Goto Forum:
  


Current Time: Sat Nov 09 00:50:04 GMT 2024

Powered by FUDForum. Page generated in 0.03962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top