Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace Action causing error
JFace Action causing error [message #435914] Fri, 07 May 2004 11:38 Go to next message
Alan is currently offline AlanFriend
Messages: 44
Registered: July 2009
Member
Hi. I'm trying to complete a tutorial that can be found at:
http://www-106.ibm.com/developerworks/opensource/library/os- ecgui3/

I'm running Eclipse Version: 3.0.0 Build id: 200403261517 and I've tried
it under Windows and Linux. When I press the Exit button I receive the
following:

Any ideas where I'm going wrong?



java.lang.NoClassDefFoundError: org/osgi/framework/InvalidSyntaxException
at org.eclipse.core.runtime.Platform.getDebugOption(Platform.ja va:349)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:502)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:435)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2578)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2256)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:670 )
at org.eclipse.jface.window.Window.open(Window.java:650)
at Hello.main(Hello.java:60)
Re: JFace Action causing error [message #435922 is a reply to message #435914] Fri, 07 May 2004 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: not.all.com

You probably need to include the osgi.jar. That's a change from 2.x -> 3.x.


Alan wrote:
> Hi. I'm trying to complete a tutorial that can be found at:
> http://www-106.ibm.com/developerworks/opensource/library/os- ecgui3/
>
> I'm running Eclipse Version: 3.0.0 Build id: 200403261517 and I've tried
> it under Windows and Linux. When I press the Exit button I receive the
> following:
>
> Any ideas where I'm going wrong?
>
>
>
> java.lang.NoClassDefFoundError: org/osgi/framework/InvalidSyntaxException
> at org.eclipse.core.runtime.Platform.getDebugOption(Platform.ja va:349)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:502)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:435)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2578)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2256)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:670 )
> at org.eclipse.jface.window.Window.open(Window.java:650)
> at Hello.main(Hello.java:60)
>
Re: JFace Action causing error [message #435937 is a reply to message #435914] Fri, 07 May 2004 20:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lewandom.USUNTOop.pl

Uzytkownik "Alan" <alan.millen@heartsine.co.uk> napisal w wiadomosci
news:c7fses$t9g$1@eclipse.org...
> Hi. I'm trying to complete a tutorial that can be found at:
> http://www-106.ibm.com/developerworks/opensource/library/os- ecgui3/
>
> I'm running Eclipse Version: 3.0.0 Build id: 200403261517 and I've tried
> it under Windows and Linux. When I press the Exit button I receive the
> following:
>
> Any ideas where I'm going wrong?

I've faced the same problem today. Just go to http://www.osgi.com, register
there, download osgi.jar and include it in your library path.

Marcin
Re: JFace Action causing error [message #435939 is a reply to message #435937] Fri, 07 May 2004 23:37 Go to previous messageGo to next message
Christian Hauser is currently offline Christian HauserFriend
Messages: 189
Registered: July 2009
Senior Member
>>Hi. I'm trying to complete a tutorial that can be found at:
>> http://www-106.ibm.com/developerworks/opensource/library/os- ecgui3/
>>
>>I'm running Eclipse Version: 3.0.0 Build id: 200403261517 and I've tried
>>it under Windows and Linux. When I press the Exit button I receive the
>>following:
>>
>>Any ideas where I'm going wrong?
>
>
> I've faced the same problem today. Just go to http://www.osgi.com, register
> there, download osgi.jar and include it in your library path.

Well, osgi.jar comes with Eclipse 3.0. Just include it in your classpath:

<ECLIPSE_INSTALL_DIR>/plugins/org.eclipse.osgi_3.0.0/osgi.jar

Regards,
Christian
Re: JFace Action causing error [message #436034 is a reply to message #435939] Mon, 10 May 2004 08:25 Go to previous message
Alan is currently offline AlanFriend
Messages: 44
Registered: July 2009
Member
Guys,

Thanks for the info. I included the
<ECLIPSE_DIRECTORY>/plugins/org.eclipse.osgi_3.0.0/osgi.jar
and it works a treat now. Seems like such an easy answer when you know
where to look.

Thanks again,

Alan

:-)
Previous Topic:JFace actions problem
Next Topic:Limit on number of calls to Transfer.registerType ?
Goto Forum:
  


Current Time: Thu Apr 25 13:02:09 GMT 2024

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

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

Back to the top