Swt design is not working--“No GUI roots detected"

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Swt design is not working--“No GUI roots detected"

Postby nudtpc » Sun Oct 19, 2008 7:24 pm

Recently, 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 MySwtProject.java and select the “design” view.
And when I try to open the “design” view there are some error hints such as:
"Stack Trace: java.lang.NoClassDefFoundError: java.awt.Component at java.lang.Class.forName0(Native Method) at ......"
"No GUI Roots detected "
"Designer was unable to find any GUI elements in your source .
Check that the open compilation unit is a GUI class."
"Unknown window type"
What's wrong with this problem?
Thanks,
nudtpc
nudtpc
 
Posts: 3
Joined: Sun Oct 19, 2008 6:32 pm

Re: Swt design is not working--“No GUI roots detected"

Postby Eric Clayberg » Mon Oct 20, 2008 4:47 am

SWT Designer v6.5.0 is no longer supported. Please use v6.8.0 instead.

You can create an SWT/JFace project using the wizard provided by SWT Designer.

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Swt design is not working--“No GUI roots detected"

Postby nudtpc » Mon Oct 20, 2008 6:20 am

Hi Eric Clayberg,
Thank you for your help.
But I still cannot follow you well. Because I can use SWTDesigner successfully on the windows platform. And now, I use eclispe 3.3.2 + jdk1.5.0。Can windowbuild prov6.8 support these?
Thanks,
nudtpc
nudtpc
 
Posts: 3
Joined: Sun Oct 19, 2008 6:32 pm

Re: Swt design is not working--“No GUI roots detected"

Postby Eric Clayberg » Mon Oct 20, 2008 8:03 am

WindowBuilder works fine under Linux using Eclipse 3.3.x and JDK 1.5.x.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Swt design is not working--“No GUI roots detected"

Postby nudtpc » Mon Oct 20, 2008 7:56 pm

I have installed Designer_v6.8.0_linux_x86.bin successfully. And when I import Existing Projects into Workspace, I still encountered the problem like before.
Now let me talk about how I used the SWTdesigner:
a)import an existing project.
b)open the file (e.g. UIWizard.java)
c)switch to design view.
d)Errors are as following:

1.An error has occurred. See error log for more details./home/pcs1/jdk1.5.0_16/jre/lib/i386/libawt.so: libmlib_image.so: cannot open the shared object file:there is no such file or content.
2.Plug-in Provider: InstantiationsPlug-in Name: WindowBuilder ProfessionalPlug-in ID: com.swtdesignerPlug-in Version: 6.8.0.200810071129java.lang.UnsatisfiedLinkError: /home/pcs1/jdk1.5.0_16/jre/lib/i386/libawt.so: libmlib_image.so: cannot open the shared object file:there is no such file or content.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at .........
java.lang.UnsatisfiedLinkError: /home/pcs1/jdk1.5.0_16/jre/lib/i386/libawt.so: libmlib_image.so: cannot open the shared object file:there is no such file or content.
at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:119) at .....
moreDesigner Configuration Details:
Product: WindowBuilder Professional
Version: 6.8.0.200810071129
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name: Actual Eclipse
Build ID: M20080221-1800IDE
Actual Name: Eclipse SDKIDE
Actual Version: 3.3.3.r33x_r20080129IDE
Actual NL: zh_CNSerial
Number: WindowBuilderPro-03575-6040
Activation Key: WindowBuilderPro-NJ0VH-QM1FK-P3NCU
Physical Address: 00-0C-76-4F-64-E4Code
Gen: Flat Mode, Use Existing, First Assignment, Make FinalEvents: Anonymous ClassPlatform
Product: Eclipse SDKPlatform Version: 3.3.3.r33x_r20080129OS
Name: LinuxOS Architecture: i386OS Version: 2.6.23.1-42.fc8
nudtpc
 
Posts: 3
Joined: Sun Oct 19, 2008 6:32 pm

Re: Swt design is not working--“No GUI roots detected"

Postby Eric Clayberg » Tue Oct 21, 2008 10:46 am

Looks like a problem with the JDK on your machine. A possible solution is described here...

https://bugs.launchpad.net/debian/+sour ... bug/162232

Or simply re-install the latest JDK from Sun.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Swt design is not working--“No GUI roots detected"

Postby TioP » Fri Feb 13, 2009 4:28 pm

I am getting this error on my Linux Fedora 5 box using v6.6 which comes bundled with JBuilder2008. Is there an upgrade to v6.8 for the JBuilder version? While this version seems to work ok in Windows XP, it is rather a mess in Fedora 5. I just create a JFrame subclass and get the "No GUI roots detected" popup. The log/stack trace has this:
!STACK 0
java.lang.NoSuchMethodError: com.instantiations.utils.reflect.CompositeClassLoader.add(Ljava/lang/ClassLoader;)V
This doesn't happen if I create an "Application window".
I have to go through contortions to write a default text on in the Properties view of JTextArea (initially I can only paste, then I delete the text a couple of times, and only then I see a blinking cursor in the "text" line of the Properties), I can't resize the JTextArea, etc. In short, a useless tool as-is. I know it can work (it does in Windows), but it just doesn't work the same in Linux. I Linux supported?. Didn't see anything to the contrary.
Thanks,
TioP
TioP
 
Posts: 2
Joined: Fri Feb 13, 2009 4:02 pm

Re: Swt design is not working--“No GUI roots detected"

Postby Eric Clayberg » Fri Feb 13, 2009 4:35 pm

The product works just fine under Linux.

Have you installed any other plugins into JBuilder or tried to update Swing Designer to the latest version from our web site?

The exception you are getting seems to indicate that there is a problem with the Swing Desgner installation. It is not a Linux specific issue.

Ye, there is a JBuilder version of Swing Designer v6.9 (the latest) which you can get from JBuilder support.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Swt design is not working--“No GUI roots detected"

Postby TioP » Sat Feb 14, 2009 5:04 pm

No, I didn't install any other plugins into JBuilder. It is a plain installation, as installed by the JBuilder installer.
I didn't try to update manually Swing Designer and didn't download anything from Instantiations website. As said, it is a plain installation, which completed without warnings or errors.
I was unable to locate the JBuilder version of Swing Designer v6.9 in Codegear website to upgrade it. It should have appeared in the "Downloads" page for registered users, I guess, but nothing explicit about SD appears there. Or it is included in some JBuilder update?
Thank you for the prompt response.
-TioP
TioP
 
Posts: 2
Joined: Fri Feb 13, 2009 4:02 pm

Re: Swt design is not working--“No GUI roots detected"

Postby Eric Clayberg » Sat Feb 14, 2009 7:29 pm

TioP wrote:I was unable to locate the JBuilder version of Swing Designer v6.9 in Codegear website to upgrade it.

You need to contact CodeGear support in order to get it.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests