[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: ASTParser Help

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.