Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse

Tried googling but couldn't found the solution.

Using Windows 7 Ultimate 64 bits.

I have java(64 bits) installed here : C:\Program Files (x86)\Java\jre7

Downloaded Android SDK from here Get the Android SDK

I downloaded the 64 bits considering my windows is 64 bits. Was 32 bits required?

Now whenever i run eclipse.exe I get the following error:

A Java Runtime Environment or JDK must be available in order to run Eclipsec. No java virtual machine was found after searching the following location: C:\Users..\Downloads\adt-bundle-windows=x86_64-3013131030\adt-bundle-windows-x86_64-20131030\eclipse\jre\bin\java.exe

Sorry can't post a screenshot because don't have any reputation as of now here.

So what should I do?
Do I need to install 32 bit Java or download 32 bit SDK ?

PS: Before running Eclipse I have run "SDK Manager" and it installed some necessary tools. Maybe if this helps.

like image 915
Deepanshu Avatar asked Dec 04 '13 11:12

Deepanshu


People also ask

How do I fix error a JRE or JDK must be available in order to run Eclipse Mac?

Add the -vm flag to fix the Eclipse JRE or JVM must be available error. And that's it. Make the change, save the file, and then re-run the Eclipse installer. The Eclipse “No Java virtual machine was found” error will go away, and the Eclipse IDE will be successfully installed on your desktop.

Do we need both JDK and JRE for Eclipse?

Eclipse is a Java-based application and, as such, requires a Java Runtime Environment or Java Development Kit (JRE or JDK) in order to run. Note that on recent versions of Mac, a full JDK needs to be installed, not just a JRE; see instructions below.

How do I download JDK for Eclipse?

Download and Install JDK, Eclipse (IDE) To develop and run any java program you need to install JDK in your system. You can download the latest version of Java from here http://www.oracle.com/technetwork/java/javase/downloads/index.html).


3 Answers

Just Set your environment variable. Goto to Computer properties -> Advance System Setting -> Environment variables -> System Variables -> path and after a semi colon paste the path of your JRE like this C:\Program Files\Java\jre7\bin click on ok.

Open CMD and type java if this command works properly means your path has been set now. just open you eclipse and it will work this time. You can do this through command line too just type set PATH=C:\Program Files\Java\jre1.6.0_03\bin and press enter.

If still it is not working just paste this set PATH=C:\Program Files\Java\jre1.6.0_03\bin in your eclipse.ini file :)

like image 195
MrDumb Avatar answered Oct 01 '22 01:10

MrDumb


You have a 32-bit Java. "Program Files (x86)" is for 32-bit programs on a 64-bit system. Either install a 64-bit Java and use the download you have, or get the 32-bit download.

like image 38
nitind Avatar answered Oct 01 '22 02:10

nitind


You need to use any of the following configurations:

  1. x64 System, x64 JDK, x64 ADT Bundle
  2. x64 System, x86 JDK, x86 ADT Bundle
  3. x86 System, x86 JDK, and ADT Bundle
like image 24
insomniac Avatar answered Oct 01 '22 01:10

insomniac