-
Story
-
Resolution: Not A Defect
-
Minor
-
None
-
master on-CENTOS 7
slave on-RHEL 6
while compiling ant dist its not able to launch the ant and its giving error.
error:
$ ant dist
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.tools.ant.launch.Launcher. Program will exit.
Build step 'Invoke Ant' marked build as failure
please check the issue and reply as soon as possible.
and i tried setting both JAVA_HOME and ANT_HOME still giving the same error.
Hi build, what version of Java are you using?
This does not seem like an issue with the Ant Plugin though, but an issue with your current installation since you cannot even run Ant from the command line, can you?