Sun GlassFish Enterprise Server 2.1 Release Notes

Bundled ANT throws java.lang.NoClassDefFoundError (6265624)

Description

The following exception is thrown in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher.

Solution

Use of the bundled ANT for things outside the Enterprise Server is not recommended.