In the Eclipse console, I'm getting an error that JAVA HOME is not set.
I went ahead and set it to .;C:\Program Files\Java\jre1.6.0_02\
in system variables
Then I restarted eclipse, but I keep getting the same error.
What am I doing wrong?
In the Eclipse console, I'm getting an error that JAVA HOME is not set.
I went ahead and set it to .;C:\Program Files\Java\jre1.6.0_02\
in system variables
Then I restarted eclipse, but I keep getting the same error.
What am I doing wrong?
You have to set the jre inside the eclipse.
Go to Window -> Preferences
Java -> installed JREs
Create JAVA_HOME environment variable points to your JDK directory, don't put it into PATH variable.
Remove the period and semicolon from the beginning, like this:
C:\Program Files\Java\jre1.6.0_02\
This is just one specific directory, not a semicolon-separated list like the system PATH variable.
Also, make sure the environment variable you create is called JAVA_HOME with an underscore between JAVA and HOME. You seem to have JAVA HOME with a space between them.