Eclipse启动错误:A Java Runtime Environment JRE) or Java Development Kit (JDK) must be available in order

Start Eclipse error:
A Java Runtime Environment JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: E:\ Download\ eclipse java-2019-12- R-win32-x86 _64\ 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 to the front:
-vm
C:\ProgramFiles\ Java\jdk1.8.0_45\bin\javaw.exe
Insert picture description here

This is the absolute path of the javaw.exe you installed.

Guess you like

Origin blog.csdn.net/shanlijia/article/details/107611677