Java – Android – Eclipse JRE not found

Android – Eclipse JRE not found… here is a solution to the problem.

Android – Eclipse JRE not found

I have downloaded the Android ADT Bundle and tried to create a hello world android app.

I’m following Setting up the ADT bundle, which means just unzip the zip file and launch Eclipse.

The following error occurred

“The Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available to run Eclipse. The Java virtual machine was not found after searching for the following location: C:\adt\adt-bundle-windows- x86_64-20131030\eclipse\jre\bin\javaw.exe…”

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

But I think my ADT package should be self-sufficient and don’t require any additional downloads. Strangely I can’t find the jre directory in eclipse.

Am I missing some extra steps? If yes, what are the steps?

Solution

Not sure if this is the best approach, but if you copy-paste the JRE folder into 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 the eclipse folder will have a JRE folder, you have to specify the path JDK path in ENV.

Related Problems and Solutions