Bug#448073: ant doesn't work in eclipse due to ant-launcher.jar not on classpath
Matthew Toseland
toad at amphibian.dyndns.org
Thu Oct 25 19:37:49 UTC 2007
Package: eclipse
Version: 3.2.1-6
Severity: important
Eclipse is unable to run ant because of a classpath problem. It produces
an error box "could not find org.apache.tools.ant.launch.AntMain".
Specifically, ant-launcher.jar is missing from the ant classpath config
within eclipse. This persists across purging and reinstalling eclipse so
appears to be a problem with eclipse itself. Adding the missing jar to
the classpath fixes the problem, so it should be easy to fix. The
missing jar is ant-launcher.jar, which is not symlinked in
/usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib with the other jars; I
added it from /usr/share/ant/lib/ directly, now building with ant works.
PS the following may be relevant:
$ ant -version
Apache Ant version 1.7.0 compiled on August 24 2007
Listed in aptitude as 1.7.0-3
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (700, 'stable'), (600, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.21.6-toad-new (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages eclipse depends on:
ii eclipse-jdt 3.2.1-6 Java Development Tools plug-ins fo
ii eclipse-pde 3.2.1-6 Plug-in Development Environment to
ii eclipse-source 3.2.1-6 Eclipse source code plug-ins
ii zenity 2.18.2-1 Display graphical dialog boxes fro
Versions of packages eclipse recommends:
pn eclipse-gcj <none> (no description available)
-- debconf-show failed
More information about the pkg-java-maintainers
mailing list