[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] Re: ASTParser Help
|
- From: Cheng Thao <chengt@xxxxxxx>
- Date: Wed, 25 Jul 2007 14:19:53 -0500
- Newsgroups: eclipse.tools.jdt
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.5 (Windows/20070716)
Cheng Thao wrote:
Olivier Thomann wrote:
Cheng Thao a écrit :
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/Plugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
org.eclipse.jdt.core.dom.ASTParser.initializeDefaults(ASTParser.java:230)
at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:212)
at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java:112)
at test.Test.main(Test.java:23)
You can get this if you don't have all the required jars on your
classpath.
--
Olivier
org/eclipse/core/runtime/content/IContentTypeManager$IContentTypeChangeListener
at java.lang.ClassLoader.defineClass1(Native Method)
I added many more jar files. Now it needs the IContentTypeManager which
I can't seem to find the jar that has it. I assume it is in the
org.eclipse.core.runtime.jar. I tried that, but it didn't work. I look
at the source code in org.eclipse.core.runtime.content, but there is no
IContentTypeManager.
I'm using Eclipse 3.2.2.
OK, this is fixed. I had to include the following jar files.
org.eclipse.core.contenttype.jar
org.eclipse.core.jobs.jar
org.eclipse.core.resources.jar
org.eclipse.runtime.jar
org.eclipse.equinox.common.jar
org.eclipse.equinox.preferences.jar
org.eclipse.jdt.core.jar
org.eclipse.osgi.jar