Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 67003 invoked from network); 1 Feb 2010 01:01:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 01:01:15 -0000 Received: (qmail 30206 invoked by uid 500); 1 Feb 2010 01:01:13 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 30098 invoked by uid 500); 1 Feb 2010 01:01:13 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 30088 invoked by uid 99); 1 Feb 2010 01:01:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 01:01:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ahhughes@gmail.com designates 209.85.219.209 as permitted sender) Received: from [209.85.219.209] (HELO mail-ew0-f209.google.com) (209.85.219.209) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 01:01:02 +0000 Received: by ewy1 with SMTP id 1so607008ewy.26 for ; Sun, 31 Jan 2010 17:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XRRudN3iqlygIWOLErLJiSjwAQ9dOCDH+dQapU5j32w=; b=OB7I9Cql5soSbXyJ5v0JPuM0s8Y3z5zZCRFgIqE6NZGqHWAf4SkYPhtowukTtMvqHI 7uFOdxGit5TkGln5dPVM62pccbBrrGCftfYnxYFiUbis67+n5UvvQe4WOFELQvBHJ6Pi DJ/Ooxo8ZsMCIYgG+QnHPjP2i5FFmKftYgqFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=j3FOc5EOP7ebTeW/Sz66zr/cWtK9TWPJtawRDxcIlap/T3z12Y/G4H/T+ttwNWAiYh uV0MsyG1/3j2mXwwBOIssuWs27knqmB+bqUTZ4EJSCFSOw7h5ymsDaOaZM1VKKMSn6Fg e4tsYIubmbCSfd1LZliRyZqe6PDK/yv0PCj8o= MIME-Version: 1.0 Received: by 10.216.86.80 with SMTP id v58mr2468938wee.40.1264986041551; Sun, 31 Jan 2010 17:00:41 -0800 (PST) Date: Mon, 1 Feb 2010 11:30:41 +1030 Message-ID: <5f528cf41001311700r438505c4r2514cfb1f36d8eb2@mail.gmail.com> Subject: Problem with JAVA_HOME relative path From: Andrew Hughes To: Maven Users List Content-Type: multipart/alternative; boundary=0016e6d99ef5a70f27047e7f8358 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d99ef5a70f27047e7f8358 Content-Type: text/plain; charset=ISO-8859-1 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 --0016e6d99ef5a70f27047e7f8358--