Return-Path: Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Delivered-To: mailing list dev@ant.apache.org Received: (qmail 33876 invoked from network); 18 Feb 2003 00:31:08 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Feb 2003 00:31:08 -0000 Received: (qmail 17648 invoked by uid 50); 18 Feb 2003 00:32:47 -0000 Date: 18 Feb 2003 00:32:47 -0000 Message-ID: <20030218003247.17647.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 17145] New: - javacc task can't find java if not in path. X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17145 javacc task can't find java if not in path. Summary: javacc task can't find java if not in path. Product: Ant Version: 1.5.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: dev@ant.apache.org ReportedBy: dalgoda@ix.netcom.com I use a build system that has a minimal PATH, including no ant or java in it. Instead, I call ant directly and it uses JAVA_HOME to properly find java. In this situation, fails: file:/opt/main/NodeWarrior/bin/build_NWServer.xml:56: Could not launch java: java.io.IOException: java.io.IOException: java: not found Seems silly to have to set both JAVA_HOME and PATH in order to get this to work properly, but the following is a work around: PATH=$PATH:$JAVA_HOME/bin /path/to/ant -f /path/to/build.xml