Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 7834 invoked by uid 500); 12 Jun 2001 16:17:02 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 7366 invoked from network); 12 Jun 2001 16:16:55 -0000 Message-ID: <3B263FD3.5000209@snipermail.com> Date: Tue, 12 Jun 2001 12:14:11 -0400 From: Bill Clinton User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; m18) Gecko/20010131 Netscape6/6.01 X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: ??? Warning: JAVA_HOME environment variable is not set. ??? References: <3B262B21.5050809@snipermail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello, I found the problem on this one. Apparently gnomes hacked into my machine and commented the export line in my .bashrc. I was not aware that one could "echo $VARS" and still see a value without exporting them So, when I was typing "echo $JAVA_HOME" and seeing a result, I wrongly assumed that my CLASSPATH, JAVA_HOME, etc were set when they were not. Bill Bill Clinton wrote: > Hello, > When I came in this morning, my ant builds are failing with this > message: > > Warning: JAVA_HOME environment variable is not set. > If build fails because sun.* classes could not be found > you will need to set the JAVA_HOME environment variable > to the installation directory of java. > > however, when I type: echo $JAVA_HOME > I get: /usr/java/jdk1.3.1 > > I have been using ant for about a week now with no problems, and I am > unsure of what I could have done yesterday to cause this error. If I > log in as root, ant does run with the same JAVA_HOME. > > I looked at the /usr/local/jakarta-ant-1.3/bin/ant file and saw that it > was testing for the existance of $JAVA_HOME/lib/tools.jar, which does > exist on my system. > > I don't know what I did yesterday to cause this problem today, and I am > unsure of how I should proceed to debug it. Has anyone ever seen this > problem before and could offer me a suggestion? > > Thanks, Bill