Failed to properly configure Java path in Windows 7, 64 bit

I installed java 1.6 on my computer and I also installed the path using advanced variable settings.

On the command line, when I tried to execute java, I got this error:

Error: could not open `C:\Program Files\Java\jre7\lib\amd64\jvm.cfg' 

But when I ran this command from the command line: javac -version, it showed that I had the appropriate version installed.

  javac 1.6.0_27. 

Someone please help me resolve this error.

+6
source share
2 answers

[windows 7] Go to the control panel "Control Panel \ All Control Panel Items" Then find the java icon, click on it. Select the Java option next to the General tab. In this window "View" there is only one button, click on it, find the corresponding JRE vesion and make sure that it points to the correct version, on the way. If your JRE is not visible, click ADD.

+4
source

I have the same error when I removed java 7 from my Windows 7 laptop and then tried to launch an eclipse. You must have java 7 installed at a specific time, or you would not get this error.

Deleting folders was not enough. I had to delete it using the remove control panels function, whereas in older versions of java you just deleted the folder where Java was installed. In any case, it worked again after I deleted it.

0
source

Source: https://habr.com/ru/post/907775/


All Articles