From user-return-71990-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Oct 26 00:01:49 2011 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D99639FC4 for ; Wed, 26 Oct 2011 00:01:49 +0000 (UTC) Received: (qmail 59437 invoked by uid 500); 26 Oct 2011 00:01:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59400 invoked by uid 500); 26 Oct 2011 00:01:49 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 59392 invoked by uid 99); 26 Oct 2011 00:01:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 00:01:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of glennoph@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 00:01:42 +0000 Received: by eyh6 with SMTP id 6so1251799eyh.4 for ; Tue, 25 Oct 2011 17:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=HtY+DSR+DTnpFbS4C2Facfa3D6EQD+UPWy7yzdaNcpI=; b=tq7wUasP5ZLMHGCmCXi3erDToqM0cF9jy34ArW23xnURF14fKcWTaX7tBMgqxpJEU6 3jje7gWJUCD57eMKln9YezaT1Y+WVuk5Ss6sSlcqWWY7ccFJ/ohWwI09jqm6t6mFjhF3 EBEHDFmyptVGWUAM4J1QFSS05J5fhffx42n+M= Received: by 10.14.15.30 with SMTP id e30mr3038764eee.12.1319587281943; Tue, 25 Oct 2011 17:01:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.94.68 with HTTP; Tue, 25 Oct 2011 17:01:01 -0700 (PDT) In-Reply-To: References: From: glenn opdycke-hansen Date: Tue, 25 Oct 2011 19:01:01 -0500 Message-ID: Subject: Re: BUILD FAILED "Perhaps JAVA_HOME does not point to the JDK" ... To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The java -version will indicate that a JRE is present. Try javac -version This will test if a JDK is available glennop@uphen:~$ java -version java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5) OpenJDK Server VM (build 20.0-b11, mixed mode) glennop@uphen:~$ javac -version javac 1.6.0_23 Then check if the JDK is on the PATH. --glenn On Mon, Oct 24, 2011 at 16:49, Albretch Mueller wrote: > =A0Hi, > ~ > =A0I have been trying to fix this error message but I am not able to see > exactly what is causing it > ~ > =A0It may relate to the fact that I am trying to compile > gdata-java-client for youtube using =A0knoppix (Debian-based live CD (I > need for it to be like that)) but I can't imagine "tools.jar" was not > included in this version of java (open-jdk) ... or? > ~ > $ uname -a > Linux Microknoppix 2.6.39.3 #21 SMP PREEMPT Sat Jul 23 09:48:39 CEST > 2011 i686 GNU/Linux > ~ > $ java -version > java version "1.6.0_18" > OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1) > OpenJDK Server VM (build 14.0-b16, mixed mode) > ~ > $ ant -version > Unable to locate tools.jar. Expected to find it in > /UNIONFS/usr/lib/jvm/java-6-openjdk/lib/tools.jar > Apache Ant(TM) version 1.8.2 compiled on December 20 2010 > ~ > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ > ~ > $ pwd > /media/sda7/inst/java/jars/gdata-java-client > > $ wget http://gdata-java-client.googlecode.com/files/gdata-samples.java-1= .46.0.zip > --2011-10-24 16:56:39-- > http://gdata-java-client.googlecode.com/files/gdata-samples.java-1.46.0.z= ip > Resolving gdata-java-client.googlecode.com... 74.125.91.82 > Connecting to gdata-java-client.googlecode.com|74.125.91.82|:80... connec= ted. > HTTP request sent, awaiting response... 200 OK > Length: 12479380 (12M) [application/octet-stream] > Saving to: `gdata-samples.java-1.46.0.zip' > > 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] > 12,479,380 =A0 149K/s =A0 in 86s > > 2011-10-24 16:58:05 (141 KB/s) - `gdata-samples.java-1.46.0.zip' saved > [12479380/12479380] > > $ wget http://gdata-java-client.googlecode.com/files/gdata-src.java-1.46.= 0.zip > --2011-10-24 17:02:59-- > http://gdata-java-client.googlecode.com/files/gdata-src.java-1.46.0.zip > Resolving gdata-java-client.googlecode.com... 74.125.93.82 > Connecting to gdata-java-client.googlecode.com|74.125.93.82|:80... connec= ted. > HTTP request sent, awaiting response... 200 OK > Length: 11264317 (11M) [application/octet-stream] > Saving to: `gdata-src.java-1.46.0.zip' > > 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] > 11,264,317 =A0 134K/s =A0 in 83s > > 2011-10-24 17:04:22 (133 KB/s) - `gdata-src.java-1.46.0.zip' saved > [11264317/11264317] > > $ ls -l > total 23416 > -rw-r--r-- 1 knoppix knoppix =A0 =A091932 Oct 24 17:01 gdata-samples.java= -1.46.0.png > -rw-r--r-- 1 knoppix knoppix 12479380 Sep 14 15:05 gdata-samples.java-1.4= 6.0.zip > -rw-r--r-- 1 knoppix knoppix =A0 =A091395 Oct 24 17:03 gdata-src.java-1.4= 6.0.png > -rw-r--r-- 1 knoppix knoppix 11264317 Sep 14 15:04 gdata-src.java-1.46.0.= zip > > $ sha1sum -b *.zip > 08c9bd94eb2835ddb6baacbef5b2a52cefc0b0d7 *gdata-samples.java-1.46.0.zip > 62ab7fc53fcd91a30d4419f9e8bb31878ae085af *gdata-src.java-1.46.0.zip > > =A0* both sha1 signatures checked OK! > > $ unzip gdata-src.java-1.46.0.zip > Archive: =A0gdata-src.java-1.46.0.zip > =A0inflating: gdata/COPYING > =A0inflating: gdata/INSTALL-src.txt > =A0inflating: gdata/README-src.txt > =A0inflating: gdata/RELEASE_NOTES.txt > =A0 creating: gdata/java/manifest/ > ... > =A0inflating: gdata/java/doc/package-list > =A0 creating: gdata/java/doc/resources/ > =A0extracting: gdata/java/doc/resources/inherit.gif > =A0 creating: gdata/java/deps/ > =A0inflating: gdata/java/deps/google-collect-1.0-rc1.jar > =A0inflating: gdata/java/deps/jsr305.jar > > $ unzip gdata-samples.java-1.46.0.zip > > $ unzip gdata-samples.java-1.46.0.zip > Archive: =A0gdata-samples.java-1.46.0.zip > replace gdata/COPYING? [y]es, [n]o, [A]ll, [N]one, [r]ename: ^C > > $ pwd > /media/sda7/inst/java/jars/gdata-java-client/samples > > $ unzip gdata-samples.java-1.46.0.zip > Archive: =A0gdata-samples.java-1.46.0.zip > =A0inflating: gdata/COPYING > =A0inflating: gdata/INSTALL-samples.txt > =A0inflating: gdata/README-samples.txt > =A0inflating: gdata/RELEASE_NOTES.txt > =A0inflating: gdata/java/build-samples.xml > =A0inflating: gdata/java/version.properties > =A0 creating: gdata/java/build-samples/ > ... > =A0inflating: gdata/java/doc/package-list > =A0 creating: gdata/java/doc/resources/ > =A0extracting: gdata/java/doc/resources/inherit.gif > =A0 creating: gdata/java/deps/ > =A0inflating: gdata/java/deps/google-collect-1.0-rc1.jar > =A0inflating: gdata/java/deps/jsr305.jar > > $ > > $ pwd > /media/sda7/inst/java/jars/gdata-java-client/gdata/java > > $ ls -l > total 32 > drwxr-x--- 2 knoppix knoppix 4096 Sep =A06 19:37 build-src > -rw------- 1 knoppix knoppix 3707 Sep =A09 19:14 build-src.xml > drwxr-x--- 2 knoppix knoppix 4096 Sep =A06 19:37 deps > drwxr-x--- 4 knoppix knoppix 4096 Sep =A09 19:20 doc > drwxr-x--- 2 knoppix knoppix 4096 Sep =A09 19:18 lib > drwxr-x--- 2 knoppix knoppix 4096 Sep =A06 19:37 manifest > drwxr-x--- 3 knoppix knoppix 4096 Sep =A09 19:14 src > -rw------- 1 knoppix knoppix 1293 Sep =A09 19:14 version.properties > > $ ant build-src.xml > Unable to locate tools.jar. Expected to find it in > /UNIONFS/usr/lib/jvm/java-6-openjdk/lib/tools.jar > Buildfile: build.xml does not exist! > Build failed > > $ ant --help | grep buildfile > =A0-buildfile =A0 =A0 =A0use given buildfile > =A0-find =A0 =A0 =A0 =A0 =A0 (s)earch for buildfile towards the ro= ot of > > $ ant -buildfile build-src.xml > Unable to locate tools.jar. Expected to find it in > /UNIONFS/usr/lib/jvm/java-6-openjdk/lib/tools.jar > Buildfile: /media/sda7/inst/java/jars/gdata-java-client/gdata/java/build-= src.xml > > dirs: > =A0 =A0[mkdir] Created dir: > /media/sda7/inst/java/jars/gdata-java-client/gdata/java/classes > > build.manifest: > =A0 =A0[mkdir] Created dir: > /media/sda7/inst/java/jars/gdata-java-client/gdata/java/genfiles/manifest > =A0 =A0 [copy] Copying 23 files to > /media/sda7/inst/java/jars/gdata-java-client/gdata/java/genfiles/manifest > > build.core.base: > =A0 =A0[mkdir] Created dir: > /media/sda7/inst/java/jars/gdata-java-client/gdata/java/classes/core > =A0 =A0[javac] /media/sda7/inst/java/jars/gdata-java-client/gdata/java/bu= ild-src/core.xml:257: > warning: 'includeantruntime' was not set, defaulting to > build.sysclasspath=3Dlast; set to false for repeatable builds > > BUILD FAILED > /media/sda7/inst/java/jars/gdata-java-client/gdata/java/build-src/core.xm= l:257: > Unable to find a javac compiler; > com.sun.tools.javac.Main is not on the classpath. > Perhaps JAVA_HOME does not point to the JDK. > It is currently set to "/UNIONFS/usr/lib/jvm/java-6-openjdk/jre" > > Total time: 4 seconds > > $ echo $JAVA_HOME > > $ > > $ which java > /usr/bin/java > > $ ls -l `which java` > lrwxrwxrwx 1 root root 22 Aug 27 =A02010 /usr/bin/java -> /etc/alternativ= es/java > > $ ls -l /etc/alternatives/java > lrwxrwxrwx 1 root root 40 Aug 27 =A02010 /etc/alternatives/java -> > /usr/lib/jvm/java-6-openjdk/jre/bin/java > > $ export JAVA_HOME=3D/usr/lib/jvm/java-6-openjdk > > $ echo $JAVA_HOME > /usr/lib/jvm/java-6-openjdk > > $ ls -l /usr/lib/jvm/java-6-openjdk/jre/bin/java > -rwxr-xr-x 1 root root 34788 Apr 20 =A02011 > /usr/lib/jvm/java-6-openjdk/jre/bin/java > > $ ls -l /usr/lib/jvm/java-6-openjdk/jre/bin > total 503 > -rwxr-xr-x 1 root root =A034788 Apr 20 =A02011 java > -rwxr-xr-x 1 root root =A0 =A0148 Apr 20 =A02011 javaws > -rwxr-xr-x 1 root root =A035520 Apr 20 =A02011 javaws.real > -rwxr-xr-x 1 root root =A034880 Apr 20 =A02011 keytool > -rwxr-xr-x 1 root root =A034936 Apr 20 =A02011 orbd > -rwxr-xr-x 1 root root =A034812 Apr 20 =A02011 pack200 > -rwxr-xr-x 1 root root =A035016 Apr 20 =A02011 pluginappletviewer > -rwxr-xr-x 1 root root =A035216 Apr 20 =A02011 policytool > -rwxr-xr-x 1 root root =A034880 Apr 20 =A02011 rmid > -rwxr-xr-x 1 root root =A034888 Apr 20 =A02011 rmiregistry > -rwxr-xr-x 1 root root =A034900 Apr 20 =A02011 servertool > -rwxr-xr-x 1 root root =A034968 Apr 20 =A02011 tnameserv > -rwxr-xr-x 1 root root 126124 Apr 20 =A02011 unpack200 > > $ ls -l /usr/lib/jvm/java-6-openjdk/jre > total 139 > -rw-r--r-- 1 root root =A0 1503 Apr 19 =A02011 ASSEMBLY_EXCEPTION > -rw-r--r-- 1 root root 127498 Apr 19 =A02011 THIRD_PARTY_README > drwxr-xr-x 2 root root =A0 2048 Jun 17 09:41 bin > drwxr-xr-x 9 root root =A0 8192 Jun 17 09:41 lib > drwxr-xr-x 4 root root =A0 2048 Aug 27 =A02010 man > > $ ls -l /usr/lib/jvm/java-6-openjdk > total 8 > drwxr-xr-x 2 root root 4096 Jul =A08 02:05 bin > lrwxrwxrwx 1 root root =A0 41 Aug 27 =A02010 docs -> > ../../../share/doc/openjdk-6-jre-headless > drwxr-xr-x 5 root root 2048 Jun 17 09:41 jre > drwxr-xr-x 4 root root 2048 Aug 27 =A02010 man > > $ ls -l /usr/lib/jvm > total 2 > lrwxrwxrwx 1 root root =A0 14 Aug 27 =A02010 default-java -> java-6-openj= dk > lrwxrwxrwx 1 root root =A0 14 Aug 27 =A02010 java-1.6.0-openjdk -> java-6= -openjdk > drwxr-xr-x 5 root root 2048 Jul =A08 02:05 java-6-openjdk > > > $ ls -l ls -l /usr/lib/jvm/java-6-openjdk/jre/lib > ls: cannot access ls: No such file or directory > /usr/lib/jvm/java-6-openjdk/jre/lib: > total 66304 > -rw-r--r-- 1 root root =A0 =A017784 Apr 19 =A02011 about.jar > -rw-r--r-- 1 root root =A0 =A0 =A0607 Apr 19 =A02011 about.jnlp > lrwxrwxrwx 1 root root =A0 =A0 =A0 44 Jun 17 09:41 accessibility.properti= es > -> /etc/java-6-openjdk/accessibility.properties > lrwxrwxrwx 1 root root =A0 =A0 =A0 40 Jun 17 09:41 calendars.properties -= > > /etc/java-6-openjdk/calendars.properties > -rw-r--r-- 1 root root =A03534509 Apr 19 =A02011 charsets.jar > -rw-r--r-- 1 root root =A0 =A078219 Apr 19 =A02011 classlist > drwxr-xr-x 2 root root =A0 =A0 2048 Jun 17 09:41 cmm > -rw-r--r-- 1 root root =A0 =A0 1497 Apr 19 =A02011 compilefontconfig.jar > lrwxrwxrwx 1 root root =A0 =A0 =A0 44 Jun 17 09:41 content-types.properti= es > -> /etc/java-6-openjdk/content-types.properties > -rw-r--r-- 1 root root =A0 =A0 4049 Apr 19 =A02011 currency.data > drwxr-xr-x 2 root root =A0 =A0 2048 Jun 17 09:41 ext > lrwxrwxrwx 1 root root =A0 =A0 =A0 40 Jun 17 09:41 flavormap.properties -= > > /etc/java-6-openjdk/flavormap.properties > lrwxrwxrwx 1 root root =A0 =A0 =A0 34 Jun 17 09:41 fontconfig.bfc -> > /etc/java-6-openjdk/fontconfig.bfc > lrwxrwxrwx 1 root root =A0 =A0 =A0 41 Jun 17 09:41 fontconfig.properties = -> > /etc/java-6-openjdk/fontconfig.properties > drwxr-xr-x 9 root root =A0 =A0 6144 Aug =A01 04:45 i386 > drwxr-xr-x 2 root root =A0 =A0 2048 Jun 17 09:41 im > drwxr-xr-x 3 root root =A0 =A0 2048 Aug 27 =A02010 images > -rw-r--r-- 1 root root =A0 =A0 =A0 62 Apr 20 =A02011 jar.binfmt > -rw-r--r-- 1 root root =A0 =A044385 Apr 19 =A02011 javazic.jar > -rw-r--r-- 1 root root =A0 =A085243 Apr 19 =A02011 jce.jar > -rwxr-xr-x 1 root root =A0 =A0 4940 Apr 20 =A02011 jexec > -rw-r--r-- 1 root root =A0 521610 Apr 19 =A02011 jsse.jar > -rw-r--r-- 1 root root =A0 =A0 4224 Apr 19 =A02011 jvm.hprof.txt > lrwxrwxrwx 1 root root =A0 =A0 =A0 38 Jun 17 09:41 logging.properties -> > /etc/java-6-openjdk/logging.properties > drwxr-xr-x 2 root root =A0 =A0 2048 Jun 17 09:41 management > -rw-r--r-- 1 root root =A0 =A0 =A0385 Apr 19 =A02011 management-agent.jar > -rw-r--r-- 1 root root =A0 =A0 2216 Apr 19 =A02011 meta-index > lrwxrwxrwx 1 root root =A0 =A0 =A0 34 Jun 17 09:41 net.properties -> > /etc/java-6-openjdk/net.properties > lrwxrwxrwx 1 root root =A0 =A0 =A0 40 Jun 17 09:41 psfont.properties.ja -= > > /etc/java-6-openjdk/psfont.properties.ja > lrwxrwxrwx 1 root root =A0 =A0 =A0 40 Jun 17 09:41 psfontj2d.properties -= > > /etc/java-6-openjdk/psfontj2d.properties > -rw-r--r-- 1 root root =A01083793 Apr 19 =A02011 resources.jar > -rw-r--r-- 1 root root =A0 901842 Apr 19 =A02011 rhino.jar > -rw-r--r-- 1 root root 61587347 Apr 19 =A02011 rt.jar > drwxr-xr-x 2 root root =A0 =A0 2048 Jun 17 09:41 security > lrwxrwxrwx 1 root root =A0 =A0 =A0 36 Jun 17 09:41 sound.properties -> > /etc/java-6-openjdk/sound.properties > lrwxrwxrwx 1 root root =A0 =A0 =A0 36 Jun 17 09:41 swing.properties -> > /etc/java-6-openjdk/swing.properties > -rw-r--r-- 1 root root =A0 =A0 =A0 35 Apr 19 =A02011 tz.properties > lrwxrwxrwx 1 root root =A0 =A0 =A0 27 Nov =A01 =A02010 zi -> ../../../../= ../share/javazi > > $ sudo find /usr/lib -type f -name tools.jar > > $ sudo find /etc -type f -name tools.jar > > $ sudo find / -type f -name tools.jar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org