Community
Participate
Working Groups
I saw this comment on the newsgroup. To use JFace, one requires OSGI in the classpath, because we reference it from the Policy class (which is used by such classes as ActionContributionItem). I'm not sure if this is a regression. Here's the newsgroup posting.... I'm working upon a SWT/JFace Eclipse 3.0RC1 standalone GUI and I've just added a menu bar with a File/Quit menu item. When I select the Quit option I receive this message: java.lang.NoClassDefFoundError: org/osgi/framework/InvalidSyntaxException at org.eclipse.core.runtime.Platform.isRunning(Platform.java:1232) at org.eclipse.jface.util.Policy.getDebugOption(Policy.java:100) at org.eclipse.jface.util.Policy.<clinit>(Policy.java:51) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:909) at org.eclipse.jface.action.ActionContributionItem.access$2 (ActionContributionItem.java:866) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:944) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2512) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2223) at org.eclipse.jface.window.Window.runEventLoop(Window.java:668) at org.eclipse.jface.window.Window.open(Window.java:648) at gui.GuiApplication.main(GuiApplication.java:50) Am I supposed to locate and download an OSGi implementation from IBM (assuming it is appropriately licensed) or is this class dependency spurious?
I think this is because it requires runtime which requires OSGI. Nick?
In this particular case, the Policy class imports an OSGI class.
I implemented Policy so I will take this one.
We need this in order to have access to the Log (we need to implement a dummy log). As this is a runtime requirement anyways we should keep it.
Should make it easier to do standalone JFace apps post 3.0.
Should add a "standalone" flag to Policy, to avoid having to call Platform, since that brings in a fair number of other types, including some in OSGi.
*** This bug has been marked as a duplicate of 49497 ***