Unable to find a javac Perhaps JAVA_HOME does not point to the JDK
If you have imported an existing project in eclipse , especially when you want to setup the test environment on a new machine you sometimes see this error "Unable to find a javac; Perhaps JAVA_HOME does not point to the JDK"
Unable to find a javac; Perhaps JAVA_HOME does not point to the JDK
This is a common error that I have seen a couple of times hence the solution:
Solution that did not work :
Select the JRE by going to the Window-->Preferences-->JAVA-->Editor-->Installed JRE
Solution that worked:Simple just download tools.jar
and add tools.jar file in window->preferences->ant-> runtime-> Global Entries
once done you will be all set!
Here are some screenshots: