aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes SWT_AWT Assistance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT_AWT Assistance" Watch "SWT_AWT Assistance" New topic
Author

SWT_AWT Assistance

James M Chan
Greenhorn

Joined: Sep 23, 2008
Posts: 5
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)
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
James M Chan
Greenhorn

Joined: Sep 23, 2008
Posts: 5
sun's jre from jdk1.5.0_16.
James M Chan
Greenhorn

Joined: Sep 23, 2008
Posts: 5
Here is a related thread from esri forums:

http://forums.esri.com/Thread.asp?c=159&f=1706&t=235768&mc=6
James M Chan
Greenhorn

Joined: Sep 23, 2008
Posts: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SWT_AWT Assistance