cannot find ant org.apache.tools.ant.launch.Launcher class
214 views
Skip to first unread message
Steven Dahlin
unread,
Oct 14, 2011, 2:08:12 PM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
I have setup jenkins using the latest war 1.434 on tomcat 7. However
when I attempt to build a project I get the following error:
[workspace] $ ant -v build
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
tools/ant/launch/Launcher
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.tools.ant.launch.Launcher.
Program will exit.
Build step 'Invoke Ant' marked build as failure
Archiving artifacts
Finished: FAILURE
The needed jars ant-launcher-1.8.0.jar and ant-1.8.0.jar are in the
jenkins WEB-INF/lib directory so I am unclear as to why it cannot find
them.
Thanks
Steven Dahlin
unread,
Oct 14, 2011, 3:15:26 PM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Neve mind. I found out that the ant executable did not match the
jars. That has been fixed.