[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: JFace examples in Second Edition of Clayberg/Rubel "Eclipse - Building Commercail Quality Plugins"
|
Hi Chris,
ISafeRunnable is in the org.eclipse.core.runtime plugin, so you'll need its
jar on your buildpath as well. I think this is the last one you'll need to
add, but if this doesn't get you running then you should post a followup to
the eclipse.platform.rcp newsgroup since that is where jface and its
dependencies (excluding swt) live.
Grant
"Chris Gage" <chrisgage@xxxxxxxxxxxxx> wrote in message
news:b1ipl25c167o9p1151cje5gapo76cjdgla@xxxxxxxxxx
> I posted this message to the email address supplied in the book but
> got no reply, so here goes...
>
> In my setup, with Eclipse 3.2.0 Build id: M20060629-1905, I got all
> the way through the SWT examples without any problems whatsoever.
>
> I then moved on to the JFace examples in Chapter 5. In addition to
> the instructions for adding support for standalone JFace on page 193 I
> proceeded with the ListViewer example. The instructions were shown
> for Eclipse 3.1 and were evidently insufficent for Eclipse 3.2, and I
> was obliged to add the org.eclipse.core.commands jarfile to my build
> path, to resolve EventManager.class This got me further along, but I
> got stuck again at runtime with
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/ISafeRunnable at
>
com.qualityeclipse.sample.ListViewerExample.main(ListViewerExample.java:36)
>
> The line in question is
>
> final ListViewer listViewer = new ListViewer (shell, SWT.SINGLE);
>
> ISafeRunnable seems to be a rather fundamental part of the Eclipse
> core. What have I done wrong? I had heard tell that JFace is now
> formally unsupported outside the Eclipse plugin framework, so I fear I
> may be on my own here.
>
> I see a bunch of posts to this newsgroup from 2003 that mention
> standalone JFace and wonder where to go from here. I had high hopes
> for this book having had similar impassable roadblocks and unanswered
> errata with both the RCP book and the SWT book.
>
> Chris Gage
> Gage Information Services Inc.
> Raleigh NC