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
Waiting at Sun.Misc.Unsafe.Park(Native Method)
When Should an Illegalargumentexception Be Thrown
Jtable Getselectedrow Does Not Return the Selected Row Index
"Noclassdeffounderror: Could Not Initialize Class" Error
How to Get Annotations of a Member Variable
Creating Animated Gif with Imageio
Trouble with Gson Serializing an Arraylist of Pojo'S
Use a .Jar Java Library API in C#
How to Turn Off the Httpsession in Web.Xml
Using an Instance of an Object as a Key in Hashmap, and Then Access It with Exactly New Object
Transactional Saves Without Calling Update Method
How to Modify JSONnode in Java
Java Static Serialization Rules
Java If VS. Try/Catch Overhead
What Does the 'New' Keyword Actually Do in Java, and Should I Avoid Creating New Objects
What Is the Optimal Capacity and Load Factor for a Fixed-Size Hashmap