org.eclipse.jface.window ApplicationWindow instantiation -- NoClassDefFoundError [message #259540] |
Sun, 29 June 2008 14:18  |
Eclipse User |
|
|
|
Originally posted by: publicMailingAddress.gmail.com
I am attempting to instantiate an ApplicationWindow and am getting a
NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor.
To the build path of the package, I have attached:
org.eclipse.jface_3.4.0.I20080606-1300.jar
I also tried a Java Source Attachment of:
D:/eclipse/plugins/org.eclipse.jface.source_3.4.0.I20080606- 1300.jar
That, at least, enabled me to conveniently see the source code.
This is the code:
// line 1
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.jface.*;
import org.eclipse.jface.window.*;
// line 6
public class TestApp
{
// line 9
public static void main( String[] args )
{
Display OS_Interface = new Display();
Shell mainWindow = new Shell( OS_Interface );
WindowManager wm = new WindowManager();
ApplicationWindow aw = new ApplicationWindow( mainWindow ); // line 15
} // line 16
}
and this is the stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/IProgressMonitor
at TestApp.main(TestApp.java:15)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.core.runtime.IProgressMonitor
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)
... 1 more
as you can see, the WindowManager Class does not throw an exception, but
it belongs to the org.eclipse.jface.window.* package also. It appears that
none of the classes called by the ApplicationWindow are outside of this
package.
Does anybody know why this is happening? Specifically, am I doing
something incorrectly, or is there something wrong with this specific jar.
Is there something I forgot to set up, etc. It would seem that this could
not be my fault, since I am following the javadoc and since the other
class works just fine.
Thanks for your help,
Ryan
|
|
|
|
Powered by
FUDForum. Page generated in 0.08405 seconds