Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Swt design is not working--“No GUI roots detected"

Peichang Shi,

From looking at the error messages, I'd say that this is a problem with SWTDesigner. The GUI elements were built by hand, not using a GUI designer like this, so I'd say that it is having trouble understanding the layout that has been used. You might want to take this up with the SWTDesigner technical support people.

I used SWTDesigner for some of the elements in 2.1 but even these have been customized from the originals so are likely to be problematic.

Regards,

Greg

On Oct 19, 2008, at 10:01 AM, peichang shi wrote:


Hi Beth and Greg:
  Recently, in order to comprehend the codes of PTP2.0.1 project(e.g.
/rms/org.eclipse.
ptp.rm.orte.ui/src/org/eclipse/ptp/rm/orte/ui/wizards/ ORTEConfigurationWizardpage.java), I have installed SWTDesigner (WBPro_v6.5.0_linux_x86.bin). But I have a problem with my SWT designer within eclipse. The error can be summed up as:
  The first situation:
If I don’t import the swt-3.3.2-gtk-linux-x86_64.zip through archive file
there will be an error like:
/home/pcs/jdk1.5.0_11/jre/lib/i386/libawt.so: Can't load IA 32- bit .so on a
IA 32-bit platform
  The Second situation:
After imported the swt-3.3.2-gtk-linux-x86_64.zip through archive file,
and done these operations :
 a).Org.eclipse.ptp.rm.orte.uipropertiesJava Build
Pathprojectsaddorg.eclipse.swt
 b)…. LibrariesAdd JARsswt.jar&swt-debug.jar
 c)….-->Order and Exportselect allOK.
d).open the file of rm/orte/ui/wizards/ ORTEConfigurationWizardpage.java
and select the “design” view.
 And when I try to open the “design” view there is an error hint:

http://www.nabble.com/file/p20056370/1.jpg

Stack Trace: java.lang.NoClassDefFoundError: java.awt.Component     at
java.lang.Class.forName0(Native Method)     at
java.lang.Class.forName(Class.java:164)     at
com .swtdesigner .model.swing.component.menu.factory.MenuObjectInfoParserFactory.class $(MenuObjectInfoParserFactory.java:33)
at
com .swtdesigner .model .swing .component .menu .factory .MenuObjectInfoParserFactory.create(MenuObjectInfoParserFactory.java: 33)
at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113)
at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:96)
at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:89)
at
com.swtdesigner.model.parser.JavaInfoParser $ParserVisitor.endVisit(JavaInfoParser.java:1445)
at
org .eclipse .jdt .core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java: 336)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)     at
org .eclipse .jdt .core .dom .VariableDeclarationFragment .accept0(VariableDeclarationFragment.java:224)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java: 2546) at org .eclipse.jdt.core.dom.FieldDeclaration.accept0(FieldDeclaration.java: 286)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
com.swtdesigner.model.parser.JavaInfoParser $ParserVisitor.visit(JavaInfoParser.java:2712)
at
org .eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java: 466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java: 2546) at org .eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java: 213)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
com .swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java: 320)
at
com .swtdesigner .gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1140) at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java: 1072)
at
com .swtdesigner .model .swing .properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at
com .swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java: 1066)
at
com .swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java: 1059)
at
com .swtdesigner .editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:426)
at
com.swtdesigner.editors.MultiPageEditor $2.widgetSelected(MultiPageEditor.java:196) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java: 227) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java: 66) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)     at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)     at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)     at
org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:951)     at
org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java: 3227) at
org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)     at
org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java: 316) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)     at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java: 2971) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2389) at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)     at
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)     at
org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)     at
org .eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 289)
at
org .eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149)
at
org .eclipse .ui .internal.ide.application.IDEApplication.start(IDEApplication.java: 106)
at
org .eclipse .equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at
org .eclipse .core .runtime .internal .adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 106)
at
org .eclipse .core .runtime .internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at
org .eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 363)
at
org .eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 176)
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:585)     at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)     at
org.eclipse.equinox.launcher.Main.run(Main.java:1173) Full stack trace (to
see full context): org.apache.commons.lang.exception.NestableError:
org.apache.commons.lang.exception.NestableError:
java.lang.NoClassDefFoundError: java.awt.Component     at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:119)
at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:96)
at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:89)
at
com.swtdesigner.model.parser.JavaInfoParser $ParserVisitor.endVisit(JavaInfoParser.java:1445)
at
org .eclipse .jdt .core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java: 336)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)     at
org .eclipse .jdt .core .dom .VariableDeclarationFragment .accept0(VariableDeclarationFragment.java:224)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java: 2546) at org .eclipse.jdt.core.dom.FieldDeclaration.accept0(FieldDeclaration.java: 286)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
com.swtdesigner.model.parser.JavaInfoParser $ParserVisitor.visit(JavaInfoParser.java:2712)
at
org .eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java: 466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java: 2546) at org .eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java: 213)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)     at
com .swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java: 320)
at
com .swtdesigner .gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1140) at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java: 1072)
at
com .swtdesigner .model .swing .properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at
com .swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java: 1066)
at
com .swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java: 1059)
at
com .swtdesigner .editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:426)
at
com.swtdesigner.editors.MultiPageEditor $2.widgetSelected(MultiPageEditor.java:196) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java: 227) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java: 66) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)     at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)     at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)     at
org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:951)     at
org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java: 3227) at
org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)     at
org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java: 316) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)     at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java: 2971) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2389) at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)     at
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)     at
org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)     at
org .eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 289)
at
org .eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149)
at
org .eclipse .ui .internal.ide.application.IDEApplication.start(IDEApplication.java: 106)
at
org .eclipse .equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at
org .eclipse .core .runtime .internal .adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 106)
at
org .eclipse .core .runtime .internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at
org .eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 363)
at
org .eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 176)
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:585)     at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at
org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)     at
org.eclipse.equinox.launcher.Main.run(Main.java:1173) Caused by:
org.apache.commons.lang.exception.NestableError:
java.lang.NoClassDefFoundError: java.awt.Component     at
com .swtdesigner .model .swing .component .menu .factory .MenuObjectInfoParserFactory.create(MenuObjectInfoParserFactory.java: 52)
at
com .swtdesigner .model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:113) ... 58 more Caused by: java.lang.NoClassDefFoundError: java.awt.Component
at java.lang.Class.forName0(Native Method)     at
java.lang.Class.forName(Class.java:164)     at
com .swtdesigner .model.swing.component.menu.factory.MenuObjectInfoParserFactory.class $(MenuObjectInfoParserFactory.java:33)
at
com .swtdesigner .model .swing .component .menu .factory .MenuObjectInfoParserFactory.create(MenuObjectInfoParserFactory.java: 33)
... 59 more


 And then will be annother error hint (After pressed “OK”):
 http://www.nabble.com/file/p20056370/2.jpg

I just can see the “design” perspective of the code(After pressed “OK”):
“rm/orte/ui/wizards/ORTEConfigurationWizardpage.java” like:
http://www.nabble.com/file/p20056370/3.jpg

I don't know what could be wrong with the install/configuration. I have successfully used SWT-Designer in windows platform. The install is pretty brainless, I also use the command “eclipse -clean”, but the result is the same. And the enviroment is eaxctly the same as before , which can be used to build the whole project of PTP2.0.1 successfully. I have read the SWT/Swing/GWT Designer/WindowBuilder FAQ”, but I cannot obtain the solution
of the problem –“No GUI roots detected".
  I am desired to solve the proble as soon as possible.

Thanks

Peichang Shi

--
View this message in context: http://www.nabble.com/Swt-design-is-not-working--%E2%80%9CNo-GUI-roots-detected%22-tp20056370p20056370.html
Sent from the Eclipse Parallel Tools - Dev mailing list archive at Nabble.com.

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev




Back to the top