Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Error with TreeViewer
Error with TreeViewer [message #464253] Sat, 19 November 2005 02:36 Go to next message
Jeff Yuan is currently offline Jeff YuanFriend
Messages: 34
Registered: July 2009
Member
Hi,
I am somewhat of a novice to SWT/JFace. I'm trying to create a TreeViewer
Component:

TreeViewer tr = new TreeViewer(sash, SWT.SINGLE);

I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/ISafeRunnable

Creating a tree is fine, but a TreeViewer is not.

Can anyone point me to some possible reasons for this error or how I can
resolve it?

I have imported import org.eclipse.jface.viewers.TreeViewer;

Thanks.
Re: Error with TreeViewer [message #464257 is a reply to message #464253] Sat, 19 November 2005 08:46 Go to previous messageGo to next message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
Just a wild guess but !. Something seems to be seriously wrong with your Eclipse installation. If you just make a plugin project with UI contributions turned on, all of JFace should be useable without any NoClassDefFoundError errors.

Thanks
~Venkat
Re: Error with TreeViewer [message #464284 is a reply to message #464257] Sun, 20 November 2005 15:24 Go to previous message
Jeff Yuan is currently offline Jeff YuanFriend
Messages: 34
Registered: July 2009
Member
Actually I found the problem. It was a build path issue with the
core.runtime library. It's fixed now. It's just that I had no idea JFace
dependedon this library.
Previous Topic:SWT lightweight popup menu
Next Topic:copy/cut multiple cells in table
Goto Forum:
  


Current Time: Mon Mar 01 07:54:34 GMT 2021

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

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

Back to the top