Tag Archives: Eclipse startup error

Eclipse startup error: a Java runtime environment (JRE) or Java Development Kit (JDK) must be available

—————————
Eclipse
—————————
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

sure
—————————

before you solve this problem, make sure you have your own JAVA installation and environment variable configuration.
The first solution I used was to manually fill out a D:\ Eclipse \ JRE \bin\javaw.exe (the javaw.exe file can be found in the JDK’s bin directory) following the error message, and Eclipse will open as normal.
The above method is not a regular solution, so in order to prevent unknown problems, I finally took the second solution to solve.
open the Eclipse root, eclips.ini file, and add the first two lines:
-vm
C:\ProgramFiles\Java\jdk1.8.0_45\bin\javaw.exe (this is the absolute path of your installed javaw.exe)

reproduced from https://blog.csdn.net/xxm5571386/article/details/52972552