Error: cocould not open... jvm. cfg solution, cocould... jvm. cfg

Source: Internet
Author: User

Error: cocould not open... jvm. cfg solution, cocould... jvm. cfg
This is mostly because JDK has been installed on the computer. After you uninstall and reinstall it, an error occurs when you run the java command: cocould not open... jvm. cfg.

   Open the system environment variable and view the PATH. The following configuration information is displayed:

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

   

   Cause: In the hosts file, according to the above PATH information, first find the file in the directory % SystemRoot % \ system32, and the jdk installation directory corresponding to java.exe in the directory has been uninstalled, and the file cannot be opened.

 

   You may understand that there are two simple solutions:

   1. Delete the System32 directory (or Windows Directory) directly. Set the directory to java.exe (in fact, you will find that the file date is different from the file date in the currently installed JAVAbin directory );

   2. Put % JAVA_HOME % \ bin directly at the top of the PATH (know why );

   Try again. Is it OH ~~


If JDK is not fully uninstalled, it will be reported that JDK has been installed when you continue to install JDK later. If there is a problem with the DLL, how can we fully and perfectly uninstall JDK, we strongly recommend that you use Microsoft's Windows Install Clean Up, which is very easy to use and directly fix the DLL.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.