Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [iam-dev] "Unable to locate the Javac Compiler ..."

At the moment the solution I have is to delete the project from Eclipse and re-import it.

Morris Jones wrote:
Totally strange error that crops up occasionally in one of my several Maven Eclipse projects:

Description    Resource    Path    Location    Type
Unable to locate the Javac Compiler in:
  C:\Program Files\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
    pom.xml    /advertise    line 1    pomproblemmarker

The strange thing is that, of course, I have JAVA_HOME pointing to real JDK's (1.6), and project-specific settings are turned off, and Eclipse is using a JDK for the installed JRE.

So something is fishy about that.

This is a paste from the "Problems" view in Eclipse 3.5

Mojo


--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers: http://www.otastro.org
Twitter: http://twitter.com/mojo_la


Back to the top