[
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,
That's not a ptp problem; i suggest you ask in the SWT designer people where you obtained that software.
The first error looks like you're not including java.awt.Component, for example. I suggest you see the SWT documentation or
their user support resources for how to include this.
...Beth
Beth Tibbitts (859) 243-4981 (TL 545-4981)
High Productivity Tools / Parallel Tools http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address: IBM Corp., 745 West New Circle Road, Lexington, KY 40511
peichang shi ---10/19/2008 10:02:33 AM---Hi Beth and Greg:
peichang shi <pcmutates@xxxxxxx>
Sent by: ptp-dev-bounces@xxxxxxxxxxx
10/19/2008 10:01 AM
Please respond to
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx> |
|
|
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�逍roperties�蛋ava Build
Path�逍rojects�豉dd�這rg.eclipse.swt
b)…. �蚯ibraries�莧dd JARs�連wt.jar&swt-debug.jar
c)….-->Order and Export�連elect all�袞K.
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


