Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main
java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main [message #1717839] Thu, 17 December 2015 09:13
Harshad Ghorpade is currently offline Harshad GhorpadeFriend
Messages: 3
Registered: December 2015
Junior Member
I am getting following error while doing automated build in Hudson :
java-test:
     [echo] Running com.test.AllTests. Result file: c:/tool_v5/results/com.test.AllTests.xml.

     [java] java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main
     [java] Caused by: java.lang.ClassNotFoundException: org.eclipse.core.launcher.Main
     [java] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
     [java] 	at java.security.AccessController.doPrivileged(Native Method)
     [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
     [java] Could not find the main class: org.eclipse.core.launcher.Main.  Program will exit.
     [java] Exception in thread "main" 
     [java] Java Result: 1
BUILD FAILED


Here is the part of Ant script :

	<property name="fromCopy" value="D:/casdev/tools_out_test/plugins/test.tools.testutil/@dot/test/tools/testutil"/>
	<property name="arg1" value=""/>
	<property name="arg2" value=""/>
	<property name="arg3" value=""/>
        <property name="arg4" value=""/>
	<property name="arg5" value=""/>
	<property name="arg6" value=""/>
	<property name="arg7" value=""/>
	<property name="arg8" value=""/>
	<property name="arg9" value=""/>
	<property name="arg10" value=""/>
	<property name="dir.src" value="${arg10}/plugins/test.tools.testutil/src/test/tools/testutil"/>
	<property name="dir.class" value="${arg10}/plugins/test.tools.testutil/src"/>
	<echo message="class files: ${dir.class}"/>
	 <target name="run.generic.args.3">
	 <javac srcdir="${dir.src}" destdir="${dir.class}">
		  <include name="PassArgumentsToHudson.java" />
	</javac> 
	 <java classname="test.tools.testutil.PassArgumentsToHudson">
		<arg value="${arg1}"/> 
		<arg value="${arg2}"/> 
	 	<arg value="${arg3}"/> 
		<arg value="${arg4}"/> 
	 	<arg value="${arg5}"/>
	 	<arg value="${arg6}"/>
		<arg value="${arg7}"/> 
		<arg value="${arg8}"/> 
	 	<arg value="${arg9}"/> 
		<arg value="${arg10}"/> 
	 	<classpath>
		<pathelement path="${dir.class}"/>
		</classpath>
	 </java>
	<delete dir="${dir.class}/test/tools/testutil">
	<include name="PassArgumentsToHudson.class" />
	</delete> 
	</target>

Previous Topic:Hudson problem after interuption on slave
Next Topic:Possible to Export Jobs?
Goto Forum:
  


Current Time: Wed Aug 16 13:18:27 GMT 2017

Powered by FUDForum. Page generated in 0.02551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software