简体   繁体   中英

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.

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 :)

您需要使用以下任何配置:

  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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM