maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Randall <javabr...@gmail.com>
Subject Re: Problem with JAVA_HOME relative path
Date Mon, 01 Feb 2010 03:00:48 GMT
Are you running Eclipse IDE?  Looks similar to
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-UnabletolocatetheJavacCompilerError


Brett

On Mon, Feb 1, 2010 at 12:00 PM, Andrew Hughes <ahhughes@gmail.com> wrote:

> Hi All,
>
> I get the following error and I'm pretty sure that the problem is hidden
> somewhere. Things of interest are in *bold* below
>
> [INFO] Compiling 16 source files to
> D:\Workspace\gwt1.6-maven2-starter-app-1.0\server\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> Unable to locate the Javac Compiler in:
>  C:\Program Files\Java\jdk1.6.0_14\*..\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.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Feb 01 10:09:48 CST 2010
> [INFO] Final Memory: 12M/25M
> [INFO]
> ------------------------------------------------------------------------
>
> D:\Workspace\gwt1.6-maven2-starter-app-1.0\parent>*echo %JAVA_HOME%*
> *C:\Program Files\Java\jdk1.6.0_14*
> *
> *
>
> My JAVA_HOME appears to be set correctly, pointing to jdk1.6.0_14. However,
> the compiler plugin is looking for ..\lib\tools.jar. Which does not exist,
> because the ".." (up one directory) path is actually pointing to
> 'C:\Program
> Files\Java\lib\tools.jar' which is obviously wrong.
>
> Any idea's where the relative path could be getting trashed?
>
> Cheers :)
>
> p.s. to get the source for the code I am trying to build:
> svn checkout *http*://
> gwt-maven2-starter-app.googlecode.com/svn/trunk/gwt-maven2-starter-app-read-only
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message