[ant 0005083]: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Mantis Bug Tracker via bug-notifications
bug-notifications at lists.opencsw.org
Wed Oct 23 18:25:50 CEST 2013
A NOTE has been added to this issue.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5083
======================================================================
Reported By: blindpassenger
Assigned To:
======================================================================
Project: ant
Issue ID: 5083
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-06-12 12:02 CEST
Last Modified: 2013-10-23 18:25 CEST
======================================================================
Summary: 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
======================================================================
----------------------------------------------------------------------
(0010606) spm (reporter) - 2013-10-23 18:25
https://www.opencsw.org/mantis/view.php?id=5083#c10606
----------------------------------------------------------------------
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.
More information about the bug-notifications
mailing list