How to solve eclipse startup issue - "a jre or jdk must be available in order to run eclipse"?

0 votes
149 views
asked Aug 11, 2016 by Hitesh Garg (127 points)  

I have made some environmental changes because I was installing Hadoop on my system. Now whenever I run eclipse it throws the below error -

Eclipse startup error

What should I do to fix this issue and get my eclipse running?

1 Answer

0 votes
answered Sep 5, 2016 by Rahul Singh (153 points)  

I have faced such an issue before and setting Java vm directly in eclipse.ini solves my problem.
eclipse.ini file is lcoated in the same directory as your eclipse.exe.

Search for -vm in file and if it is available then add <your path to jdk|jre>/bin/javaw.exe in next line.

And if it is not avilable then add these lines at the end of the file

-vm
<your path to jdk|jre>/bin/javaw.exe

NOTE :- Pay attention that there are two different lines. Also make sure that the -vm option is before the -vmargs option (and of course after "openFile").

Welcome to Codingeek Q&A, where you can ask questions and receive answers from other members of the community.
...