OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005083 [ant] regular use major always 2013-06-12 12:02 2013-12-02 16:36
Reporter blindpassenger View Status public  
Assigned To cgrzemba
Priority normal Resolution fixed  
Status closed  
Summary 0005083: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Description when executing ant I am always getting the following error message:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Additional Information I uninstalled ant and reinstalled it. Additionally to the CSWant package also the package libsqlite3_0 was updated, but this didn't help. The error message is still the same.

I am running Solaris 10 update 7 with Kernelversion Generic_147440-05
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010433)
maciej (reporter)
2013-06-12 12:40

Try setting JAVA_HOME and ANT_HOME like in this example:
https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/cassandra/trunk/Makefile [^]
(0010434)
blindpassenger (reporter)
2013-06-12 12:54

Thanks a lot for the quick reply, that did the trick!
(0010606)
spm (reporter)
2013-10-23 18:25

I just upgraded from Ant 1.7.1 and hit this.

The ant script checks if the path it is started with is a symbolic link (/opt/csw/bin/ant to /opt/csw/share/java/ant/bin/ant) and calculates ANT_HOME relative to the link destination which is what causes the problem.

Using a hard link rather than a symbolic link fixes this.
(0010621)
dam (administrator)
2013-10-29 13:59

Indeed, it just bit me again.

Carsten, can you please respin a fixed version?

Best regards -- Dago
(0010656)
cgrzemba (manager)
2013-12-02 16:36

fixed in 1.8.4,REV=2013.11.29, available on unstable


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker