Eclipse fault handling (configuration)

Ensure that both Jdk and Jre are installed and the environment variable configuration is correct, the automatic Ecplise error is as follows:
A Java Runtime Environment (JRE) or Java Development Kit(JDK)
must be available in order to run Eclipse. No Java virtualmachine
was found after searching the following locations:
D:\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH

Solution:

Open the eclipse.ini file in the Eclipse root directory and add two lines at the top, or modify it on the original basis:

Insert picture description here

Insert picture description here

Note:
-vm
C:\Program Files\Java\jdk1.8.0_171\bin\javaw.exe
(this is the absolute path of javaw.exe you installed)

Reprinted at: https://www.cnblogs.com/qingqing-919/p/9072930.html

Guess you like

Origin blog.csdn.net/weixin_44093867/article/details/104039033