Running Java Gives "Error: Could Not Open 'C:\Program Files\Java\Jre6\Lib\Amd64\Jvm.Cfg'"

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

Might be a slightly different cause, but that second issue occurs for me in scala 2.9.0.1 on Win7 (x64), though scala-2.9.1.final has already resolved this issue mentioned here:

\Java\jdk1.6.0_25\bin\java.exe was unexpected at this time.

My %JAVA_HOME% set to a path like this: c:\program files(x86)\Java\jdk...

Note the space and the parentheses.

If you change line 24 in %SCALA_HOME%\bin\scala.bat from:

if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe

to

if exist "%JAVA_HOME%\bin\java.exe" set "_JAVACMD=%JAVA_HOME%\bin\java.exe"

It works fine. Note the quotes around the set command parameters, this will properly enclose any spaces and 'special' characters (eg: spaces and parentheses) in the variable's value.

Hope this helps someone else searching for an answer.

Java path..Error of jvm.cfg

this should be an internal file of JRE and in general you shouldn't deal with it when you're running/compiling java.

Here you can find an explanation of what exactly this file is intended for.
Bottom line, your Java installation is somehow corrupted, so as a first resort to resolve this issue, I suggest you to re-install jre.

You should ensure that you're installing the right jre for your architecture.

Hope, this helps

How to completely remove Java? (Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg')

I find it surprising that it's so hard to remove. Anyway, to answer your question, I'd look for and delete:

  • c:\windows\system32\java.exe
  • c:\windows\system32\javaw.exe

Once those are deleted, you should be fine.

That said, I seem to be able to run GWT in hosted mode with Java 1.6.0_14 just fine.

Unable to start Eclipse -- can't open \Java\jre6\lib\i386\jvm.cfg

I also had this problem and was having trouble finding a solution, but now I did!

If you uninstall your current running jre version and then install higher one you are good to go.

I was using jre1.6 when I had this problem but after installing 1.7 it was solved!



Related Topics



Leave a reply



Submit