AST Parser and and org.eclipse.core.runtime.jobs [message #244424] |
Wed, 02 January 2008 04:21 |
Eclipse User |
|
|
|
Originally posted by: alexyermolovich.gmail.com
Hi.
I am trying to create new ASTParser:
ASTParser parser = ASTParser.newParser(AST.JLS3);
I get error bellow. I included org.ecilpse.core.runtime_3.3.100.v....jar
in buildpath. When I try to import org.eclipse.core.runtime.jobs it
doesn't seem to exist. What else is going on?
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/jobs/ISchedulingRule
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at
org.eclipse.jdt.core.dom.ASTParser.initializeDefaults(ASTPar ser.java:230)
at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:213)
at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java: 113)
at edu.berkeley.cs164.util.Parser.parseJavaFile(Parser.java:37)
at edu.berkeley.cs164.parser.runtime.Main.part3(Main.java:49)
at edu.berkeley.cs164.parser.runtime.Main.main(Main.java:25)
|
|
|
Re: AST Parser and and org.eclipse.core.runtime.jobs [message #244452 is a reply to message #244424] |
Wed, 02 January 2008 13:11 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Alex,
It's in org.eclipse.core.jobs*.jar.
Alex wrote:
> Hi.
> I am trying to create new ASTParser:
> ASTParser parser = ASTParser.newParser(AST.JLS3);
> I get error bellow. I included
> org.ecilpse.core.runtime_3.3.100.v....jar in buildpath. When I try to
> import org.eclipse.core.runtime.jobs it doesn't seem to exist. What
> else is going on? Exception in thread "main"
> java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/jobs/ISchedulingRule
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at
> org.eclipse.jdt.core.dom.ASTParser.initializeDefaults(ASTPar ser.java:230)
> at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:213)
> at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java: 113)
> at edu.berkeley.cs164.util.Parser.parseJavaFile(Parser.java:37)
> at edu.berkeley.cs164.parser.runtime.Main.part3(Main.java:49)
> at edu.berkeley.cs164.parser.runtime.Main.main(Main.java:25)
>
>
|
|
|
Re: AST Parser and and org.eclipse.core.runtime.jobs [message #244595 is a reply to message #244452] |
Wed, 02 January 2008 20:16 |
Eclipse User |
|
|
|
Originally posted by: alexyermolovich.gmail.com
Ah thanks, found it. I have another question where can I download:
org.osgi.service.prefs. When I tried to create new ASTParser it gives me "
java.lang.NoClassDefFoundError: org/osgi/service/prefs/Preferences" error.
I looked in to plugins folder of Eclipse, but the jar file is not there.
Thanks.
|
|
|
Re: AST Parser and and org.eclipse.core.runtime.jobs [message #244597 is a reply to message #244595] |
Wed, 02 January 2008 20:30 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Alex,
The way that I answer questions like this is I use ctrl-shift-T, enter
the name Preferences, select the correct one, and use the little left
right arrow in the navigator to select it the opened file in the tree.
This tells me it's in org.eclipse.equinox.preferences*.jar. This
technique relies on some plugin having a dependency on it. There's some
magical PDE technique that I've forgotten which creates a hidden project
that depends on all plugins and hence makes this technique work even
better. Maybe someone like Chris will remind me of the trick...
Alex wrote:
> Ah thanks, found it. I have another question where can I download:
> org.osgi.service.prefs. When I tried to create new ASTParser it gives
> me " java.lang.NoClassDefFoundError:
> org/osgi/service/prefs/Preferences" error.
> I looked in to plugins folder of Eclipse, but the jar file is not there.
>
> Thanks.
>
|
|
|
Powered by
FUDForum. Page generated in 0.11021 seconds