Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Viewers and ISafeRunnable
Viewers and ISafeRunnable [message #457371] Fri, 24 June 2005 14:08 Go to next message
J. Michael Dean, M.D. is currently offline J. Michael Dean, M.D.Friend
Messages: 218
Registered: July 2009
Senior Member
I am trying to simply show a viewer (ListViewer or TreeViewer) and other
experiments with Jface. If I try to do any of the simple examples in books
or tutorials, within a Java project, I get an error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/ISafeRunnable
at
ListViewerExample.main(ListViewerExample.java:15)

This occurs though SWT is installed properly; I am able to create simple
widgets, etc. but this error comes up when I try to simply display a Jface
viewer in a shell.

I also get this error if I try to implement the so-called "simplest Jface
application" as when I try to instantiate a new ApplicationWindow in a main
routine, up comes the same error.

Thanks.
Re: Viewers and ISafeRunnable [message #457372 is a reply to message #457371] Fri, 24 June 2005 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

JFace is not SWT, JFace uses SWT. SWT can run in a Java project outside
of Eclipse, but the current implementation of JFace cannot run outside
of Eclipse. It needs to be in a plugin. They are working on a standalone
JFace, but it is not out yet.

--
Thanks,
Rich Kulp
Re: Viewers and ISafeRunnable [message #457413 is a reply to message #457371] Fri, 24 June 2005 14:49 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
I think you also need to add the org.eclipse.core.runtime_3.1.0.jar when
using JFace:


"J Michael Dean" <mdean77@comcast.net> wrote in message
news:BEE17006.A4E5%mdean77@comcast.net...
>I am trying to simply show a viewer (ListViewer or TreeViewer) and other
> experiments with Jface. If I try to do any of the simple examples in
> books
> or tutorials, within a Java project, I get an error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/ISafeRunnable
> at
> ListViewerExample.main(ListViewerExample.java:15)
>
> This occurs though SWT is installed properly; I am able to create simple
> widgets, etc. but this error comes up when I try to simply display a Jface
> viewer in a shell.
>
> I also get this error if I try to implement the so-called "simplest Jface
> application" as when I try to instantiate a new ApplicationWindow in a
> main
> routine, up comes the same error.
>
> Thanks.
>
Re: Viewers and ISafeRunnable [message #457447 is a reply to message #457372] Sat, 25 June 2005 00:12 Go to previous messageGo to next message
J. Michael Dean, M.D. is currently offline J. Michael Dean, M.D.Friend
Messages: 218
Registered: July 2009
Senior Member
Am running in Eclipse. Just not a plugin project.


On 6/24/05 8:31 AM, in article d9h5g4$ku1$1@news.eclipse.org, "Rich Kulp"
<richkulp@us.NO_SPAM.ibm.com> wrote:

> JFace is not SWT, JFace uses SWT. SWT can run in a Java project outside
> of Eclipse, but the current implementation of JFace cannot run outside
> of Eclipse. It needs to be in a plugin. They are working on a standalone
> JFace, but it is not out yet.
Re: Viewers and ISafeRunnable [message #457508 is a reply to message #457447] Mon, 27 June 2005 14:20 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Is your code running as a plugin? Is it running as an RCP app? If not,
then it is not running under Eclipse. You may of used Eclipse to launch
an application, but that is not running under Eclipse.

J. Michael Dean wrote:
> Am running in Eclipse. Just not a plugin project.
>


--
Thanks,
Rich Kulp
Previous Topic:Saving an Image to GIF
Next Topic:creating child windows
Goto Forum:
  


Current Time: Thu Apr 25 10:20:17 GMT 2024

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

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

Back to the top