From owner-freebsd-java Fri Jan 18 22:30:36 2002 Delivered-To: freebsd-java@freebsd.org Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by hub.freebsd.org (Postfix) with ESMTP id 3FE3C37B405 for ; Fri, 18 Jan 2002 22:30:34 -0800 (PST) Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.22 #1) id 16Rp1M-0003V5-00; Fri, 18 Jan 2002 23:30:33 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g0J6URQ30179; Sat, 19 Jan 2002 17:00:27 +1030 (CST) (envelope-from glewis) Date: Sat, 19 Jan 2002 17:00:27 +1030 From: Greg Lewis To: "Marc G. Fournier" Cc: freebsd-java@FreeBSD.ORG Subject: Re: jakarta-ant from ports ... Message-ID: <20020119170026.A30157@misty.eyesbeyond.com> References: <20020119001232.Y8412-100000@earth.hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020119001232.Y8412-100000@earth.hub.org>; from scrappy@hub.org on Sat, Jan 19, 2002 at 12:13:56AM -0400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Jan 19, 2002 at 12:13:56AM -0400, Marc G. Fournier wrote: > Installed it, but when I try to run, I'm getting: > > rockledgends# ant dist > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main > > Use JDK1.3.1 ... *scratch head* what did I miss when installing? Main is > part of the ant distribution itself, no? It is, but it sounds like the ant shell script isn't properly setting up the classpath to include the ant jar. The version of ant I have installed looks like it expects ANT_HOME to let it know where the jar is, i.e. it expects ant.jar in ${ANT_HOME}/lib/ant.jar. Maybe you don't have this variable set? -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 796 6999 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message