문제

A couple of months back I added a SSL cert in JRE's trustcacerts for avoiding not-a-valid-certificate issues.

There I imported the self signed certificate to the following file

"C:\Program Files\Java\jre6\lib\security\cacerts"

Question 1

But now when I am trying to access to this file it's not available and instead when I go to

"C:\Program Files\Java\jre6\lib"

I can find only one folder named ext and inside it a Zipped file named QTJava

Wonder what have happened to the files which were there under Java 6.

Question 2.

And also when I opened the Windows command Prompt in Admin mode and try to use keytool command in there it says

"C:\Program Files\Java\jre7\lib\security\cacerts"

'keytool' is not recognized as an internal or external command,
operable program or batch file.

I Would like to know if someone knows a way to get this done.

도움이 되었습니까?

해결책

Q1: It seems fine on my system using the latest JRE, so I think your install is borked.

Q2: That's easy, add your JDK or JRE bin folder to the PATH environment variable. Normally something like set PATH="%PATH%;%JAVA_HOME%/bin" should do it (given that your JAVA_HOME variable points to your JDK or JRE installation folder).

다른 팁

Q1 : Installation may be corrupt

Q2 : Add your java/bin to your PATH variable.

PATH="%PATH%;%JAVA_HOME%/bin"

For this to work, You need to have JAVA_HOME variable set in your environment pointing to your JDK installation directory

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top