From odf-dev-return-527-apmail-incubator-odf-dev-archive=incubator.apache.org@incubator.apache.org Wed Jan 4 02:39:52 2012 Return-Path: X-Original-To: apmail-incubator-odf-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-odf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04D7BBA7A for ; Wed, 4 Jan 2012 02:39:52 +0000 (UTC) Received: (qmail 21975 invoked by uid 500); 4 Jan 2012 02:39:51 -0000 Delivered-To: apmail-incubator-odf-dev-archive@incubator.apache.org Received: (qmail 21919 invoked by uid 500); 4 Jan 2012 02:39:47 -0000 Mailing-List: contact odf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: odf-dev@incubator.apache.org Delivered-To: mailing list odf-dev@incubator.apache.org Received: (qmail 21902 invoked by uid 99); 4 Jan 2012 02:39:43 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 02:39:43 +0000 Received: from localhost (HELO mail-vx0-f175.google.com) (127.0.0.1) (smtp-auth username robweir, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 02:39:42 +0000 Received: by vcbf1 with SMTP id f1so12679289vcb.6 for ; Tue, 03 Jan 2012 18:39:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.225.10 with SMTP id iq10mr15892181vcb.62.1325644781882; Tue, 03 Jan 2012 18:39:41 -0800 (PST) Received: by 10.220.228.201 with HTTP; Tue, 3 Jan 2012 18:39:41 -0800 (PST) In-Reply-To: <007801ccca77$b725ab80$25710280$@acm.org> References: <003201ccc918$b513e600$1f3bb200$@acm.org> <007801ccca77$b725ab80$25710280$@acm.org> Date: Tue, 3 Jan 2012 21:39:41 -0500 Message-ID: Subject: Re: JDK 7 Results (was RE: [VOTE] Release Apache ODF Toolkit 0.5-incubating(RC7)) From: Rob Weir To: odf-dev@incubator.apache.org, dennis.hamilton@acm.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jan 3, 2012 at 7:27 PM, Dennis E. Hamilton wrote: > The tools.jar is in the usual JDK location and the packages are there. > > There is a way to run Maven where it shows the commands it executes and I= may do that to see what the compile command looks like. =C2=A0Since Maven = is synthesizing class-path parameters, it would be interesting to see what = the compile command is and whether there is a command-line change in Java 7= . > > I'm out of time on this for now, but I will take another crack at it even= tually. > I think I got it. In taglets/pom.xml, look for tools.jar. The vendor changed in the Java 7 version from "Sun Microsystems Inc." to "Oracle Corporation". That vendor name switch causes Maven not to see that dependency. Ouch. I changed the vendor name and it is not building under Java 7, or at least it has got past that error. We'll see in another 20 minutes or so if it completes. I wonder if we can simply list the JAR twice, once with each vendor? Maven seems to ignore the one it can't find. I wonder how this worked at all with OpenJDK? Do they just list themselves as coming from Sun for compatibility? -Rob > =C2=A0- Dennis > > -----Original Message----- > From: Rob Weir [mailto:robweir@apache.org] > Sent: Tuesday, January 03, 2012 13:17 > To: odf-dev@incubator.apache.org > Subject: Re: JDK 7 Results (was RE: [VOTE] Release Apache ODF Toolkit 0.5= -incubating(RC7)) > > On Mon, Jan 2, 2012 at 1:35 AM, Dennis E. Hamilton > wrote: >> Just for fun, I also attempted to build (rc7) with JDK 7u2, since JDK 6u= 30 >> seemed to work so well. >> >> No joy. =C2=A0The Maven clean install failed with compiler errors in the= very first >> compiles. >> >> =C2=A0- Dennis >> >> SOME DETAILS >> >> I don't think this is an ODF Toolkit problem. =C2=A0It appears to be som= ewhere >> between Maven and JDK 7. =C2=A0The basic situation is that com.sun.javad= oc and >> other packages in the %JAVA_HOME%\lib\tools.jar are not found. =C2=A0I t= ried >> several variations (but I did not restrict Maven to not use any parallel >> builds). >> > > Does Java 7 give you a tools.jar at all? =C2=A0If so, what happens if you > just add it to the classpath? > > -Rob > > [ ... ] >