Could not open `C:\Program Files\Java\jdk1.6.0_05\lib\i386\jvm.cfg’

I am geting this error when I enter the “java” command: “Error: could not open `C:\Program Files\Java\jdk1.6.0_05\lib\i386\jvm.cfg'”

I have configured the PATH variable (Windows XP) and “javac” works. I cannot, however, get my programs to run because of the error every time I type “java”. Also, I did not install my JDK / SDK to the directory in which the computer is looking for the “java” cammand (ie. it is not in ‘Program Files’…). If anyone can help, it would be greatly appreciated. Thank you.

Delete the “java.exe” file from “c:\windows” and “c:\windows\system32”. That should fix it.

Leave a Reply

Your email address will not be published. Required fields are marked *