Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace outside eclipse still needs eclipse core runtime?
JFace outside eclipse still needs eclipse core runtime? [message #463896] Tue, 15 November 2005 15:51 Go to next message
Eclipse UserFriend
Originally posted by: brigitte.ilsanker.gi-de.com

I'm trying to develop a standalone application, which should be a wizard
that users can use as a GUI without using Eclipse.

I understand from the documentation and from the article
"Developing JFace wizards Using the JFace toolkit" by Jeff Gunter found at
the IBM site
http://www-128.ibm.com/developerworks/java/library/os-ecjfw

that this should be possible.

Now I try to run the example provided at that site with the following
Error:
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor

This sounds to me, that I do need eclipse core runtime classes. Is that
true?
Or do I simply use an outdated example and should change to newer
resources? If so, where to find it (I searched the eclipse site already
and even IBM's).

Bridget
Re: JFace outside eclipse still needs eclipse core runtime? [message #464008 is a reply to message #463896] Wed, 16 November 2005 14:23 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Bridget Widget wrote:
> I'm trying to develop a standalone application, which should be a wizard
> that users can use as a GUI without using Eclipse.
> I understand from the documentation and from the article "Developing
> JFace wizards Using the JFace toolkit" by Jeff Gunter found at the IBM
> site http://www-128.ibm.com/developerworks/java/library/os-ecjfw
> that this should be possible.
>
> Now I try to run the example provided at that site with the following
> Error:
> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
>
> This sounds to me, that I do need eclipse core runtime classes. Is that
> true? Or do I simply use an outdated example and should change to newer
> resources? If so, where to find it (I searched the eclipse site already
> and even IBM's).

You don't need to run eclipse, but you do need the runtime jar in your
classpath (org.eclipse.core.runtime_XXX.jar). Or you could extract the
that class from the runtime jar ... It doesn't seem to have any other
dependancies on runtime.

That's the quick fix. You can also open a
https://bugs.eclipse.org/bugs/ against Platform/UI and ask about the
dependancy.

And lastly, I'm moving this to eclipse.platform, they work on JFace.

Later,
PW


Re: JFace outside eclipse still needs eclipse core runtime? [message #464012 is a reply to message #463896] Wed, 16 November 2005 14:28 Go to previous messageGo to next message
Radoslaw Grzanka is currently offline Radoslaw GrzankaFriend
Messages: 2
Registered: July 2009
Junior Member
Bridget Widget wrote:
> I'm trying to develop a standalone application, which should be a wizard
> that users can use as a GUI without using Eclipse.
> I understand from the documentation and from the article "Developing
> JFace wizards Using the JFace toolkit" by Jeff Gunter found at the IBM
> site http://www-128.ibm.com/developerworks/java/library/os-ecjfw
> that this should be possible.
>
> Now I try to run the example provided at that site with the following
> Error:
> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
>
> This sounds to me, that I do need eclipse core runtime classes. Is that
> true? Or do I simply use an outdated example and should change to newer
> resources? If so, where to find it (I searched the eclipse site already
> and even IBM's).
>
> Bridget

It is strange.. I have tried it with 3.1 not so long ago and it worked
only with swt and jface libraries.. No other were neccesary.

Cheers,
Radek.
Re: JFace outside eclipse still needs eclipse core runtime? [message #464030 is a reply to message #464012] Wed, 16 November 2005 15:16 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Radoslaw Grzanka wrote:
>
> It is strange.. I have tried it with 3.1 not so long ago and it worked
> only with swt and jface libraries.. No other were neccesary.
>
> Cheers,
> Radek.

It'll only show up if you use a JFace class that refers to the
IProgressMonitor ... otherwise the JVM will never try and load the class.

Later,
PW


Re: JFace outside eclipse still needs eclipse core runtime? [message #464212 is a reply to message #464030] Fri, 18 November 2005 18:39 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
You can add yourself to the cc list of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=49497 - a subset of the
core.runtime classes will be available as a separate JAR soon.

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:dlfihd$669$1@news.eclipse.org...
> Radoslaw Grzanka wrote:
> >
> > It is strange.. I have tried it with 3.1 not so long ago and it worked
> > only with swt and jface libraries.. No other were neccesary.
> >
> > Cheers,
> > Radek.
>
> It'll only show up if you use a JFace class that refers to the
> IProgressMonitor ... otherwise the JVM will never try and load the class.
>
> Later,
> PW
Re: JFace outside eclipse still needs eclipse core runtime? [message #464397 is a reply to message #464212] Tue, 22 November 2005 19:47 Go to previous messageGo to next message
John Arthorne is currently offline John ArthorneFriend
Messages: 175
Registered: July 2009
Senior Member
Today, in fact. In I20051122 there remains only one JFace dependency
outside the small (65KB) org.eclipse.equinox.common plugin. See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=88577
--

Boris Bokowski wrote:
> You can add yourself to the cc list of
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=49497 - a subset of the
> core.runtime classes will be available as a separate JAR soon.
>
Re: JFace outside eclipse still needs eclipse core runtime? [message #464526 is a reply to message #464397] Wed, 23 November 2005 19:06 Go to previous message
Douglas Pollock is currently offline Douglas PollockFriend
Messages: 84
Registered: July 2009
Member
John Arthorne wrote:

> Today, in fact. In I20051122 there remains only one JFace dependency
> outside the small (65KB) org.eclipse.equinox.common plugin. See:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=88577

As of N20051124-0010 and later, you need to add the following to your
classpath to run JFace standalone. Note that you need an SWT JAR that is
appropriate for your operating system and widget tool kit. The sizes are
approximate, and the "version" will vary from release to release.

729K org.eclipse.jface_version.jar
1.5M org.eclipse.swt.gtk.linux.x86_version.jar
4.0K org.eclipse.swt_version.jar
76K org.eclipse.core.commands_version.jar
64K org.eclipse.equinox.common_version.jar


There is no longer any dependency on the "org.eclipse.core.runtime" plug-in.



cheers,
d.
Previous Topic:How to open Web page from my plugin???
Next Topic:Table Column: displaying the & character
Goto Forum:
  


Current Time: Sun Dec 21 04:07:26 GMT 2014

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

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