Project: SWT
Bug 67626 XEmbeddedFrame not found
Reported: 2004-06-17 09:51:44 | Status: resolved wontfix

Tried running some plugins. Works fine on windows. On my linux install (with both blackdown1.4.2 and SUN VM1.4.2_04) some of the plugins throw an exception. The error seems to be generated from the SWT in not finding the class sun.awt.X11.XEmbeddedFrame I checked the rt.jar and it doesnt have the same. Is there any other jar which needs to be included? A log from one of the plugins (metrics) ========================================================== java.version=1.4.2_04 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US !ENTRY com.objectlearn.jdt.j2ee 1 0 Jun 17, 2004 09:33:43.796 !MESSAGE Creating server definition manager[/home/rsarma/eclipse-3.0M8/plugins/com.objectlearn.jdt.j2ee/] !ENTRY net.sourceforge.metrics 4 4 Jun 17, 2004 09:33:57.619 !MESSAGE Could not embed awt panel using reflection !STACK 0 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.sourceforge.metrics.ui.DependencyGraphView.createAWTFrame(DependencyGraphView.java:81) at net.sourceforge.metrics.ui.DependencyGraphView.createPartControl(DependencyGraphView.java:62) at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:94) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:610) at org.eclipse.core.runtime.Platform.run(Platform.java:521) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:90) at org.eclipse.ui.internal.ViewPane.createChildControl(ViewPane.java:160) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:154) at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:132) at org.eclipse.ui.internal.PartTabFolder.showPart(PartTabFolder.java:922) at org.eclipse.ui.internal.PartTabFolder.replace(PartTabFolder.java:696) at org.eclipse.ui.internal.PerspectivePresentation.addPart(PerspectivePresentation.java:244) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1421) at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:727) at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:704) at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:2891) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2888) at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2872) at net.sourceforge.metrics.ui.MetricsView.displayDependencyGraphSWT(MetricsView.java:406) at net.sourceforge.metrics.ui.MetricsView.displayDependencyGraph(MetricsView.java:396) at net.sourceforge.metrics.ui.MetricsActionGroup$GraphAction.run(MetricsActionGroup.java:104) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:550) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:502) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:474) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:939) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1953) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1726) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1562) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:267) at org.eclipse.core.launcher.Main.run(Main.java:692) at org.eclipse.core.launcher.Main.main(Main.java:676) Caused by: org.eclipse.swt.SWTError: Not implemented (java.lang.ClassNotFoundException: sun.awt.X11.XEmbeddedFrame) at org.eclipse.swt.SWT.error(SWT.java:2651) at org.eclipse.swt.awt.SWT_AWT.new_Frame(SWT_AWT.java:58) ... 49 more

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java