Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 87633 invoked from network); 13 Jul 2004 19:56:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jul 2004 19:56:43 -0000 Received: (qmail 54068 invoked by uid 500); 13 Jul 2004 19:56:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 54012 invoked by uid 500); 13 Jul 2004 19:56:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 53999 invoked by uid 99); 13 Jul 2004 19:56:35 -0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=HTML_30_40,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received: from [24.71.223.10] (HELO pd2mo3so.prod.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 13 Jul 2004 12:56:33 -0700 Received: from pd5mr4so.prod.shaw.ca (pd5mr4so-qfe3.prod.shaw.ca [10.0.141.168]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I0T007RE38ZZL@l-daemon> for user@ant.apache.org; Tue, 13 Jul 2004 13:53:23 -0600 (MDT) Received: from pn2ml6so.prod.shaw.ca ([10.0.121.150]) by pd5mr4so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I0T003HT390Y4S0@pd5mr4so.prod.shaw.ca> for user@ant.apache.org; Tue, 13 Jul 2004 13:53:24 -0600 (MDT) Received: from [192.168.0.100] (S0106000347b7810b.cg.shawcable.net [68.147.4.13]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I0T00E1338YQA@l-daemon> for user@ant.apache.org; Tue, 13 Jul 2004 13:53:24 -0600 (MDT) Date: Tue, 13 Jul 2004 13:53:01 -0600 From: Travis Reeder Subject: Re: Javac problem In-reply-to: <001e01c46911$60ea12d0$3d78030a@dougl> To: Ant Users List Message-id: <40F43D9D.3040703@ecommstats.com> MIME-version: 1.0 Content-type: multipart/alternative; boundary=------------020409050008060808060102 X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) References: <40F4366F.6010607@ecommstats.com> <001e01c46911$60ea12d0$3d78030a@dougl> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------020409050008060808060102 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Doug, running on Redhat 9 Enterprise, used export to set the vars and also have them in .bash_profile so new shells have correct path set. Unless I'm doing something totally wrong, but I check it by running export and set to view the variables and they both are set correctly. Is there anywhere else I should be doing the export? Travis Reeder Ecommstats Web Analytics Doug Lochart wrote: >Without more info the only thing I can suggest is that if you are running on >a Unix system AND you are running ant from a shell that used SET >JAVA_HOME=... to set the env variable then you will have to use export >JAVA_HOME=... instead so that the new shell that is created for ANT will >pick up the environment. When/if you reply back please be more specific on >your operating environment. > >HTH > >Doug > > >Now I've gained some understanding >Of the only world that we see. >Things that I once dreamed of >Have become reality. > >These walls that still surround me >Still contain the same old me, >Just one more who's searching for >A world that ought to be. >----- Original Message ----- >From: "Travis Reeder" >To: >Sent: Tuesday, July 13, 2004 3:22 PM >Subject: Javac problem > > > > >>I have the following settings in set: >>JAVA_HOME=/usr/java/jdk >> >>When I run a compile task that looks like this my build.xml: >> >> >deprecation="off" optimize="off" compiler="modern" > >> >> >> >>I get this: >> >>compile: >> [echo] Java Home: /usr >> [javac] Compiling 133 source files to /home/v1/web/WEB-INF/classes >> >>BUILD FAILED >>file:/home/v1/build.xml:33: 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 >> >>The echo above is what ant sees as java.home property. Why would it be >>set to that when I have JAVA_HOME set to the correct location? >> >>Travis >> >>-- >>Travis Reeder >>Ecommstats Web Analytics >> >> >>--------------------------------------------------------------------- >>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 > > > > > --------------020409050008060808060102--