Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java path..Error of jvm.cfg

Tags:

java

Can anyone please tell me why I get the following error when I try to run my Java programs? The programs get compiled successfully but are not able to be run. I have already set the path of Java.

C:\JavaServ>javac hello1.java C:\JavaServ>java hello1 Error: could not open C:\Program Files\Java\jre6\lib\amd64\jvm.cfg 
like image 536
user460920 Avatar asked Jan 29 '12 05:01

user460920


People also ask

Could not open Java jvm cfg?

Whenever you face the error saying Could not open jvm. cfg , it means that there was some mess happened with java installation path . Below approaches might help. If java is added in environment path, then open command prompt and type where java .

Where is the JVM config file?

The directory server provides a means of configuring the Java Virtual Machine (JVM) and Java options for each command-line utility and for the directory server itself. The Java configuration is provided in a properties file, located at instance-dir/OUD/config/java.


1 Answers

Don't think if this is a correct way...(perhaps proper installation of Java is a permanent solution)....but this is a trick..:)

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

like image 178
Abhishek Chatterjee Avatar answered Sep 24 '22 15:09

Abhishek Chatterjee