Forums Register Login

SWT_AWT Assistance

+Pie Number of slices to send: Send
I'm wondering if anybody can provide thoughts on what's happening below. I am very new to SWT and AWT but have to get an ESRI GIS app ported to Linux. This occured when i moved an eclipse RCP app from XP to RHEL 4.7 / Jre 1.5 and i'd like to know what's going on. Any help would be greatly appreciated.

Regards,
James M. Chan

Exception in thread "Thread-1" org.eclipse.swt.SWTError: Not implemented (java.lang.reflect.InvocationTargetException)
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.awt.SWT_AWT.new_Frame(SWT_AWT.java:172)
at com.boeing.tnmf.client.rcp.view.MapView.createPartControl(MapView.java:216)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:370)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:564)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2515)
at org.eclipse.ui.internal.WorkbenchWindow$23.run(WorkbenchWindow.java:2837)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2818)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:735)
at org.eclipse.ui.internal.Workbench$20.runWithException(Workbench.java:1023)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3296)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2974)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:801)
at org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1342)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+Pie Number of slices to send: Send
Hi,

Welcome to JavaRanch!

Are you using a real sun JRE, or the GNU Java that comes with RH? If you are, the first thing I'd do would be to dowload Sun's JRE from java.sun.com and use that instead. The Java that comes with RH is really not ready for prime time.
+Pie Number of slices to send: Send
sun's jre from jdk1.5.0_16.
+Pie Number of slices to send: Send
Here is a related thread from esri forums:

http://forums.esri.com/Thread.asp?c=159&f=1706&t=235768&mc=6
+Pie Number of slices to send: Send
This appears to be the solution for getting past the SWT_AWT bridge obstical. Basically set the AWT_TOOKKIT environment variable to use XToolkit in your shell environment.

http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.5/xawt.html

Best Regards,
James M. Chan
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1813 times.
Similar Threads
problems with plugin
"Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class" error.Please help
The server sent HTTP status code 400: Bad Request error getting when accessing web service in eclips
OutOfMemoryError while running DataClassTest
Problem with Views in Eclipse RCP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:22:49.