Skip to main content



      Home
Home » Newcomers » Newcomers » org.eclipse.jface.window ApplicationWindow instantiation -- NoClassDefFoundError
org.eclipse.jface.window ApplicationWindow instantiation -- NoClassDefFoundError [message #259540] Sun, 29 June 2008 14:18 Go to next message
Eclipse UserFriend
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
Re: org.eclipse.jface.window ApplicationWindow instantiation -- NoClassDefFoundError [message #259543 is a reply to message #259540] Sun, 29 June 2008 14:50 Go to previous message
Eclipse UserFriend
Originally posted by: publicMailingAddress.gmail.com

I'm starting to figure this out from the following link:

http://wiki.eclipse.org/index.php/JFace#Setting_Up_an_Eclips e_Project_to_use_SWT_and_JFace

finding the plugins in the PDE was difficult because the AJAX tools demo
had, earlier, walked me through changing the target platform.

Basically, it looks like there are more dependencies than I knew about.
Previous Topic:What process modeling language is under this process framework?
Next Topic:How to switch between the test class and the production class ?
Goto Forum:
  


Current Time: Fri May 09 15:02:07 EDT 2025

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

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

Back to the top