Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A57D9676 for ; Tue, 14 May 2013 12:20:14 +0000 (UTC) Received: (qmail 77409 invoked by uid 500); 14 May 2013 12:20:12 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 77091 invoked by uid 500); 14 May 2013 12:20:10 -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 77076 invoked by uid 99); 14 May 2013 12:20:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 12:20:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of corin.lawson@gmail.com designates 209.85.192.177 as permitted sender) Received: from [209.85.192.177] (HELO mail-pd0-f177.google.com) (209.85.192.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 12:20:05 +0000 Received: by mail-pd0-f177.google.com with SMTP id g10so382299pdj.36 for ; Tue, 14 May 2013 05:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Oh3bCwmkIf8Ymm1E7brzhWG0qfEpdD6ztOv3tW+dCoY=; b=oQV/V3exf4yF2ZriwqEh7zkFlaW+GzbPhtoc8Em8ypCnRQMmaYH5yKFwi/NrhIspqj KZCAvsUKVHNoF0v9JDODNHEw0JFtDvA2kKTNAGt04WFZrHf3pjnsI9OsrQBnNHgc8RIZ HveCcamfft5rc/z0xyEqMtwZJk1vw1LYW+xLo61baxOrXV4YfaN6QAvHjjmpyiY1LwKv QWegFeJX8iVbxNQ8TmzX38vnyErv4KPMXcbxG0FlEpt+58nOiS01zRrPAhz7+RBp0T1B /Ka32iruUw26kgPbVVavG9nnPY9Juh4JCF6SudkXFJOwov8eMJmTJR9Ktwr5l8OMYyrk FOSg== MIME-Version: 1.0 X-Received: by 10.66.119.49 with SMTP id kr17mr1049420pab.149.1368533984058; Tue, 14 May 2013 05:19:44 -0700 (PDT) Received: by 10.70.72.227 with HTTP; Tue, 14 May 2013 05:19:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 14 May 2013 22:19:43 +1000 Message-ID: Subject: Re: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? From: Corin Lawson To: Maven Users List Content-Type: multipart/alternative; boundary=047d7b072258fba3d004dcaca574 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b072258fba3d004dcaca574 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the input... I checked to see what happens when I set my JAVA_HOME back to the default 1.6 and, indeed, I get the same as Wayne, i.e. the JAVA_HOME value matches the 'Java home' reported by maven (which is the java.home system property, I think). To be clear I've install JDK 1.7 using the Mac OS X download from Oracle, and my objective is to use `mvn compile` with it... *Is anyone successfully using maven to compile using JDK 1.7 on Mac OS X?* I think I'll probably continue to eclipse to compile my project but I was hoping to do something a little different. This looks like a bug in the maven-compiler-plugin to me; I suspect that it is attempting to find tools.jar under the java.home system property which is the "installation directory for JRE" ( http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html), *not* the JDK installation directory... they just happen to be the same in most cases. On Tue, May 14, 2013 at 1:50 PM, Wayne Fay wrote: > >> $ echo $JAVA_HOME > >> /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home > ... > >> $ mvn --version > >> Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100) > >> Maven home: /usr/share/maven > >> Java version: 1.7.0_21, vendor: Oracle Corporation > >> Java home: > >> /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre > > FWIW this is what I get on my wife's MBP with 3.0.3 and JDK6: > $ mvn --version > Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600) > Maven home: /usr/share/maven > Java version: 1.6.0_45, vendor: Apple Inc. > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home > > Definitely think the /jre is your problem. Unsure what to do about it. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > -- See how we're connected: http://www.linkedin.com/in/corinlawson --047d7b072258fba3d004dcaca574--