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

0 votes
498 views
asked Aug 11, 2016 by Hitesh Garg (352 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 (543 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").

124 questions

41 answers

3 comments

926 users

Most popular tags

java python python3 oracle database java-8 sql-server python2 oracle11g git oracle-12g command-line maven sql-server-2012 sql input array list fenitoina dilantin javaçš„ angular javascripts git-branch intellij-idea hashmap collection file-io io temovate clobetasol ampicillin principen daclatasvir daklinza vasotec enalapril nexium esomeprazole tadalafil tadlis sildenafil citrate pefomax xeloda capecitabina clobetasol temovate stemetil prochlorperazine methotrexate methotrexate sildenafilo y dapoxetina super kamagra norvasc amlodipine citalopram celexa amitriptylin saroten vitamin b12 methylcobalamin valaciclovir valtrex zudena udenafil sildenafil citrate vigour depakote divalproex retin-a tretinoine sildenafil citrate ip-max nizoral ketoconazol ciaton tadalafil norethisteronacetat aygestin indomethacin indocin tiova tiotropium bromid finasterida proscar lithium carbonate eskalith finasterida propecia levitra vardenafil vantin cefpodoxima loxitane loxapine rulide roxithromycine avodart dutasterid tecnomax sildenafil citrate methylcobalamin vitamin b12 permethrin acticin etinilestradiol norgestrel ovral pk-merz amantadin cycrin medroxyprogesterone serophene clomiphene spironolactone aldactone mesalazin pentasa zebeta bisoprolol cytodrox hydroxyurea ampicillin ampicillin pletal cilostazol paracetamol panadol pepcid famotidina meclizine hydrochloride antivert donaton tadalafil sdf dsfs sdgfgsdg mac null-pointer-exception constructor oracle-12c terminal hibernate-5 hibernate git-merge es6 programming git-amend git-commit java-stream git-remote multithreading access-modifiers nested-classes
Welcome to Codingeek Q&A, where you can ask questions and receive answers from other members of the community.
...