Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Ant: Jar task fails with NoClassDefFoundError
Ant: Jar task fails with NoClassDefFoundError [message #65069] Fri, 06 June 2003 02:46 Go to next message
Eclipse UserFriend
Originally posted by: pardeyc.stgeorge.com.au

I am trying to get my Ant build file to work from within Eclipse. I'm
using Eclipse 2.1.1 build 200305071103 with Ant 1.5.3 (April 16 2003).
When the build gets to creating a jar file it fails with:

jar:
[copy] Copying 8 files to S:\dev\eCommerce\bilby\build
[jar] Building jar: S:\dev\eCommerce\bilby\build\bilby.jar
BUILD FAILED: java.lang.NoClassDefFoundError
Total time: 14 seconds

The other targets work ... compiling, running tests etc, just not jar.
The build works when run outside Eclipse.

I have copied the latest ant.jar, optional.jar and junit.jar into the
plugin directory. I am running this with JDK 1.4.1_01.

Any ideas? Is there another jar I need to add to the Ant runtime classpath?
Re: Jar task fails with NoClassDefFoundError [message #65409 is a reply to message #65069] Fri, 06 June 2003 09:22 Go to previous message
Eclipse UserFriend
"Craig" <pardeyc@stgeorge.com.au> wrote in message
news:bbpdb8$egm$1@rogue.oti.com...
> I am trying to get my Ant build file to work from within Eclipse. I'm
> using Eclipse 2.1.1 build 200305071103 with Ant 1.5.3 (April 16 2003).
> When the build gets to creating a jar file it fails with:
>
> jar:
> [copy] Copying 8 files to S:\dev\eCommerce\bilby\build
> [jar] Building jar: S:\dev\eCommerce\bilby\build\bilby.jar
> BUILD FAILED: java.lang.NoClassDefFoundError
> Total time: 14 seconds

Have you tried running with -debug or -verbose to determine the exact class
that is not found?

> I have copied the latest ant.jar, optional.jar and junit.jar into the
> plugin directory. I am running this with JDK 1.4.1_01.

You do not need to do this.

Darins
Previous Topic:CVS connection problem using Eclipse
Next Topic:Bookmark View
Goto Forum:
  


Current Time: Sat May 10 05:40:02 EDT 2025

Powered by FUDForum. Page generated in 0.03565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top