Eclipse can not open the prompt could not open jvm.cfg error

First words : My question just before my java_jdk the originally installed in F: \ Temp here, but then when I put this to organize your files into a folder F: \ java_jdk. Resulting in the occurrence of an error

 

Solution 1:

Because I just changed the name of the directory can not find the file path leading to change, so the easiest way is to change the file path and then go back (do not dare put me scared after random change the file name T_T)

 

Solution 2:

Before I Baidu article: Portal

First, open the directory location prompt, look for the existence of this file and folder. If it does not exist, it represents a java error occurred during the installation, the corresponding file is not installed. You need to uninstall and re-install java in the Control Panel. I encountered is the case.

If the file exists, then it can be said that the system can not find it. It certainly is saved inside the registry path, or the value of the environment variable in the wrong (this time you can go and change their values, do not know what you want to change can be seen below)

 

The case file does not exist:

 

After unloading, access to the registry before reinstalling, delete the following information at the click Start -> Run -> type regedit to open the registry to determine.              

 First, find the HKEY_LOCAL_MACHINE / software / javasoft, this javasoft deleted. Under normal circumstances javasoft contain at least \ Java Development Kit, Java Plug-in, Java Runtime Environment these three, do not be afraid, it will delete Javasoft these three are removed, the problem itself is out here, so it is necessary to delete javasoft items.                     

Second, reinstall JDK (if you do not change the default file location are selected, it is the best of friends!) Reinstall will find that there is a re HKEY_LOCAL_MACHINE / software / javasoft term, it is these parameters are new, and the problem does not appear.

 

File exists:

 

This happens mostly because of the JDK installed on the computer before, after unloading heavy equipment, will run the java command error: could not open ... jvm.cfg errors. Open system environment variables, see the PATH, you will see the configuration information like:

    %SystemRoot%\system32;%SystemRoot%;......%JAVA_HOME%\lib;%JAVA_HOME%\bin

   

The reason: When you run java, the default will follow the path set PATH to find the java.exe file, according to the above information will first go to PATH file in the% SystemRoot% \ system32 directory, java.exe in the corresponding directory jdk installation directory has been uninstalled, natural open files prompt appears.

 

    Perhaps you see here to understand, the simplest solution is twofold:

    1, delete system32 directory (the directory or windows, depending on the path set in the PATH may be) java.exe under (in fact, look at the file date will find the file with the file date in JAVA bin directory of the current installation is not the same );

    2, directly to the% JAVA_HOME% \ bin; on the front of the PATH (know why it);

 

After reading this article you basically know I need to install java_jdk are required coupled with the jdk path (registry and environment variables) where this time you can modify them

That situation appears to me, the easiest way is to put the file name and then change it back, but you can also find the registry, change it Java Development Kit, Java Plug-in, Java Runtime Environment three corresponding value (its value is a path points) and environment variables are possible

 

Guess you like

Origin www.cnblogs.com/kongbursi-2292702937/p/11619027.html