Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » KeyStore doesn't load new stores
KeyStore doesn't load new stores [message #1281575] Mon, 31 March 2014 23:47 Go to next message
Eclipse UserFriend
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 10:33 Go to previous message
Eclipse UserFriend
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: Sun Mar 16 23:05:58 EDT 2025

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

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

Back to the top