Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Eclipse JRE not found

I have downloaded Android ADT Bundle and trying to create hello world android app.

I am following Setting up ADT Bundle which says just extract the zip file and launch the Eclipse.

I am getting following error

"A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\adt\adt-bundle-windows-x86_64-20131030\eclipse\jre\bin\javaw.exe ..."

I know I can install JRE (with or without JDK), and set up javaw.exe dir in path ENV and the problem will go away.

But I think i ADT bundle should be self sufficient and should not require any additional download. Peculiar thing is that I cannot find jre dir inside eclipse.

Am I missing some additional steps? if yes, what steps?

like image 424
Tilak Avatar asked Jun 21 '26 06:06

Tilak


2 Answers

Not sure this the best way to do but if copy paste the JRE folder inside the ecplise folder it works.

But I think i ADT bundle should be self sufficient and should not require any additional download. Peculiar thing is that I cannot find jre dir inside eclipse.

I don't think so eclipse folder will be having JRE folder you have to specify the path JDK path in ENV.

like image 184
Srikanth Roopa Avatar answered Jun 22 '26 20:06

Srikanth Roopa


Check Windows -> Preferences -> Compiler and Windows -> Preferences -> Installed JREs.

If not configure them. If you have not installed JDK(It has JRE in it) then install it first.

To verify type java -version in your command line.

You should get output like

java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

(Java 7 is latest but you can use any version that suits your requirement)

like image 23
Aniket Thakur Avatar answered Jun 22 '26 18:06

Aniket Thakur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!