After the server eclipse is started, there is a freeze and a flashback solution

In the past, Eclipse could be used normally, but today it cannot be started. After clicking the icon and starting it, it has been stuck and then flashed back. Here is the solution:

  1. In the C:/WINDOWS/system32 system folder ctrl+F and then search for java.exe, if there is java.exe, javaw.exe etc. delete all.

  2. Open the eclipse.ini file in the eclipse folder. Make the following modifications: add before -vmargs

-vm

Absolute path to java.exe (for example: C:/java/jdk/bin/java.exe)

After specifying javaVM, eclipse can run normally.

(Note) Possible causes:

  1. When calling the java command, windows will look for this command from the environment variable, guessing that the priority of the system folder is always higher, higher than the specified JAVA_HOME, when there is java.exe in your C:/WINDOWS/system32 At the time, the first java.exe found must be in the system folder, so whether you reinstall eclipse or reinstall jdk, there is no special effect, but when you specify the path of jvm, you can skip this java.exe, And find the real java.exe. So after specifying the path, all problems are solved.

  2. It may be that you have multiple jdk installed, which eventually leads to eclipse not knowing which one to use

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325478202&siteId=291194637