tags:

views:

32

answers:

1

Hi all,

1.I'm a new Android developer, still learning Java, who has installed the Eclipse-java-helios-SR-win 32 on my desktop.

2.I have installed the new Java SE 6 and the Android SDK. I use Win 7.

3.When I try to launch the Eclipse application I get the below error

A Java Runtime Enviroment(JRE) or Java Developmet Kit(JDK) must be available in order to run Eclipse.No Java virtual machine was found after searching the following locations: C\:Users\User\Desktop\eclipse-java-helios-SR1-win32\eclipse\jre\bin\javaw.exe in your current PATH.

4.However I have already created this PATH in my System Variables!

A: 
  1. Your PATH environment variable seems to contain the actual javaw.exe executable. That won't work. Remove the suffix \javaw.exe from the PATH.

  2. Not sure about Windows 7, but at least in Windows XP, after you change environment variables, you have to close & re-open your command-prompt window for the change to take effect (changes to environment variables aren't propagated to existing, running processes).

Isaac
Thanks Isaac.I tried it out...it didn't workout...any other suggestions?
Eli
It seems a bit weird that it's looking for a JRE inside Eclipse's installation folder. Eclipse itself never ships with a JRE. Did you by chance extract or install a JRE into `eclipse/jre`?
Isaac
1.No I didn't extract or install a JRE into eclipse.I assume that Eclipse once extracted should automatically use Java which I had earlier installed where it will find the JRE to use. 2.Am I right or do I need to extract the eclipse to a specific destination for it to use the JRE in the installed Java program?
Eli
If you open a command-prompt window and type `java -version`, do you get any output? Also, when installing Java, did you install the JRE or the JDK (or both)?
Isaac
I installed both the JRE and JDK. The output when I type User>Users> java -version is 'java' is not a recognized internal or external command,operable program or batch file.
Eli
So that's the problem. The JDK are you using the 64-bit edition of Java?
Isaac
No I installed the 32-bit edition but I just noticed that its command window and that of my Android SDK are not functioning.Maybe I need to re-install the Java?
Eli
I never worked with Android SDK before, and I don't think it's related; if you installed a JRE on Windows and it didn't add itself to the system's PATH, then something is screwy. Either reinstall the JRE or edit your system's PATH to include the JRE's "bin" directory.
Isaac
Hi Isaac,I re-installed everything again,please see below
Eli
I had to cut and paste all the Eclipse files and put them inside the Java Program Files.From there I could launch Eclipse.
Eli