Skip to main content

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 :
     [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] 	at Method)
     [java] 	at
     [java] 	at java.lang.ClassLoader.loadClass(
     [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(
     [java] 	at java.lang.ClassLoader.loadClass(
     [java] Could not find the main class: org.eclipse.core.launcher.Main.  Program will exit.
     [java] Exception in thread "main" 
     [java] Java Result: 1

Here is the part of Ant script :

	<property name="fromCopy" value="D:/casdev/tools_out_test/plugins/"/>
	<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/"/>
	<property name="dir.class" value="${arg10}/plugins/"/>
	<echo message="class files: ${dir.class}"/>
	 <target name="run.generic.args.3">
	 <javac srcdir="${dir.src}" destdir="${dir.class}">
		  <include name="" />
	 <java classname="">
		<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}"/> 
		<pathelement path="${dir.class}"/>
	<delete dir="${dir.class}/test/tools/testutil">
	<include name="PassArgumentsToHudson.class" />

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

Current Time: Mon Jan 27 03:11:47 GMT 2020

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

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

Back to the top