Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » org.eclipse.equinox.launcher.Main (NoClassDefFoundError)
org.eclipse.equinox.launcher.Main (NoClassDefFoundError) [message #542359] Thu, 24 June 2010 15:32 Go to next message
Robert Lewis is currently offline Robert LewisFriend
Messages: 24
Registered: July 2009
Junior Member
As of eclipse 3.6, i am getting this error during our automated build process:

[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

cruisestart:
[java] java.lang.NoClassDefFoundError: org/eclipse/equinox/launcher/Main
[java] Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.launcher.Main
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
[java] Could not find the main class: org.eclipse.equinox.launcher.Main. Program will exit.
[java] Exception in thread "main"

BUILD FAILED
D:\KMT_Create_Build\scripts\kmt.create.ant.xml:65: Java returned: 1

Total time: 0 seconds

Here is the snippet of the ant file we are using:

<target name="cruisestart">
<java classname="org.eclipse.equinox.launcher.Main" fork="true"
failonerror="true">
<arg value="-ws" />
<arg value="win32" />
<arg value="-os" />
<arg value="win32" />
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value="${builder}/build.xml" />
<arg value="staticBuild" />
<jvmarg value="-Dbuilder=${builder}" />
<jvmarg value="-DviewDirectory=${viewDirectory}" />
<jvmarg value="-DbuildDirectory=${buildDirectory}"/>
<jvmarg value="-DdeltaPack=${deltaPack}" />
<jvmarg value="-DkmtPlugin=${kmtPlugin}"/>
<jvmarg value="-DNSISDir=${NSISDir}"/>
<jvmarg value="-DfinalRepo=${finalRepo}"/>
<jvmarg value="-DinstallerDir=${installerDir}" />
<jvmarg value="-DkmtSRC=${kmtSRC}" />
<classpath>
<pathelement location="${equinoxjar}" />
</classpath>
</java>
</target>

Any help is appreciated Smile If more information is needed please ask.
Re: org.eclipse.equinox.launcher.Main (NoClassDefFoundError) [message #542363 is a reply to message #542359] Thu, 24 June 2010 15:46 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
What is the value of ${equinoxjar}?

The class org/eclipse/equinox/launcher/Main is contained in the equinox launcher (org.eclipse.equinox.launcher) not in org.eclipse.osgi.

Tom.
Re: org.eclipse.equinox.launcher.Main (NoClassDefFoundError) [message #542378 is a reply to message #542363] Thu, 24 June 2010 16:17 Go to previous message
Robert Lewis is currently offline Robert LewisFriend
Messages: 24
Registered: July 2009
Junior Member
Ah yes. Thanks for pointing that out, we were looking at the older jar file for eclipse 3.5 Smile

Changing the jar file path (${equinoxjar}) fixes the problem.

Thanks
Previous Topic:can fragments added at runtime affect classpath of host?
Next Topic:legacy site.xml and p2
Goto Forum:
  


Current Time: Fri Apr 19 01:09:40 GMT 2024

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

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

Back to the top