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.