Tutorial :Eclipse Console Error That JAVA_HOME Is Missing



Question:

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?


Solution:1

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.


Solution:2

You have to set the jre inside the eclipse.

Go to Window -> Preferences

Java -> installed JREs


Solution:3

Create JAVA_HOME environment variable points to your JDK directory, don't put it into PATH variable.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »