Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2002 17:00:27 +1030
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: jakarta-ant from ports ...
Message-ID:  <20020119170026.A30157@misty.eyesbeyond.com>
In-Reply-To: <20020119001232.Y8412-100000@earth.hub.org>; from scrappy@hub.org on Sat, Jan 19, 2002 at 12:13:56AM -0400
References:  <20020119001232.Y8412-100000@earth.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020119170026.A30157>