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

Viewed 37877

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.

3 Answers

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

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.

Related