Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Cannot create SWT browser after eclipse exit and restart(Desgner tab SWT browser stops working after exiting eclipse)
Cannot create SWT browser after eclipse exit and restart [message #1005823] Mon, 28 January 2013 20:44 Go to next message
Rich Fleck is currently offline Rich FleckFriend
Messages: 8
Registered: July 2009
Junior Member
fresh install of latest eclipse Juno
eclipse-java-juno-SR1-linux-gtk-x86_64.tar

Add GWT plugin using
dl.google.com/eclipse/plugin/4.2

restart eclipse as requested

Designer tab works

exit eclipse

start eclipse

Designer tab doesn't work

Message
Can't create SWT Browser
GWT Designer uses the SWT Browser widget to render the GWT UI. SWT Browser requires a compatible xulrunner version installed: it should be 1.9.1.x or 1.9.2.x version and meet the current environment architecture. See http://www.eclipse.org/swt/faq.php#whatisbrowser and related topics for more information.

No luck with suggested fixes setting the following in eclipse.ini

-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib64/xulrunner-1.9.2.27/
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.DefaultType=mozilla

Can reproduce by reinstalling eclipse and GWT.
Designer tab works after initial installation.
Will not work afterwards.

Any Ideas?

Thank You in advance
Rich

/usr/local> /usr/java/latest/bin/java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

/usr/local> uname -a
Linux 3.0.51-0.7.9-default #1 SMP Thu Nov 29 22:12:17 UTC 2012 (f3be9d0) x86_64 x86_64 x86_64 GNU/Linux

/usr/local> more /etc/SuSE-release
SUSE Linux Enterprise Desktop 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2
Re: Cannot create SWT browser after eclipse exit and restart [message #1015702 is a reply to message #1005823] Fri, 01 March 2013 19:59 Go to previous messageGo to next message
Rich Fleck is currently offline Rich FleckFriend
Messages: 8
Registered: July 2009
Junior Member
Update

If I delete my workspace directory then start eclipse and import the project
the Designer tab works until I exit eclipse.

Next time in I get the SWT browser error.

So it is something in the workspace. Any ideas on what I
should look for?

Thanks in advance.
Rich
Re: Cannot create SWT browser after eclipse exit and restart [message #1016096 is a reply to message #1005823] Tue, 05 March 2013 00:05 Go to previous messageGo to next message
Rich Fleck is currently offline Rich FleckFriend
Messages: 8
Registered: July 2009
Junior Member
Discovered that editing workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs change showIntro=false to showIntro=true

eclipse will open showing the intro and the designer tab will work.

NB. this will only work one time since eclipse will update the file ignoring any file permissions you set on the file. You can change the file permissions on the directory at your own risk.
Re: Cannot create SWT browser after eclipse exit and restart [message #1016244 is a reply to message #1016096] Tue, 05 March 2013 15:48 Go to previous messageGo to next message
Alexander Mitin is currently offline Alexander MitinFriend
Messages: 5
Registered: March 2011
Junior Member
Any logs available for Designer tab is not working?
Can you determine which browser render it tries to use when design tab fails?
Running Eclipse using command line:
./eclipse -vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib64/xulrunner-1.9.2.27/
should use xulrunner-1.9.2 as browser renderer eclipse-wide, including Welcome Screen and WBP.
Other two options:
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.DefaultType=mozilla
have no effect for WBP.
To use WebKitGTK in WBP you should have libwebkitgtk-1.x.x.so installed in the system and have "Use WebKit if available" WBP preference enabled.

[Updated on: Tue, 05 March 2013 16:00]

Report message to a moderator

Re: Cannot create SWT browser after eclipse exit and restart [message #1016292 is a reply to message #1005823] Tue, 05 March 2013 21:19 Go to previous messageGo to next message
Rich Fleck is currently offline Rich FleckFriend
Messages: 8
Registered: July 2009
Junior Member
Alexander

Your comment helped me stumble on an odd workaround.

SUSE packages libwebkit as Library for rendering web content, GTK+ Port

ll /usr/lib64/libwebkit*
lrwxrwxrwx 1 root root 23 Jan 18 20:21 /usr/lib64/libwebkit-1.0.so -> libwebkit-1.0.so.2.17.9
lrwxrwxrwx 1 root root 23 Jan 18 20:21 /usr/lib64/libwebkit-1.0.so.2 -> libwebkit-1.0.so.2.17.9
-rwxr-xr-x 1 root root 18678416 Nov 30 20:58 /usr/lib64/libwebkit-1.0.so.2.17.9

I thought creating links for libwebkitgtk-1.0.so would help.
Kind of the reverse of your suggested fix in the google-web-toolkit group.
No Luck

Then I found this bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359296

Just the act of checking the Web Browser setting prior to trying to
open a Designer Tab works.

If I check the Web Browser setting first it is set to
Uee Internal web browser
and the Designer Tab works
with the command line message
*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).
window = 139872075739088
Browser ready.


If I open eclipse and try the Designer Tab I get the SWT error
and checking the Web Browser setting has the
Use external web browser
selected and the
Uee Internal web browser
grayed out

with the following appearing in the command line after I eclipse.
/usr/java/latest/bin/java: symbol lookup error: /usr/lib64/gtk-2.0/2.10.0/immodules/im-cedilla.so: undefined symbol: gtk_im_context_simple_get_type

Crazy but it is reproducible.

Thank You for your help and interest.
Rich

[Updated on: Tue, 05 March 2013 21:20]

Report message to a moderator

Re: Cannot create SWT browser after eclipse exit and restart [message #1016303 is a reply to message #1016292] Tue, 05 March 2013 22:59 Go to previous messageGo to next message
Alexander Mitin is currently offline Alexander MitinFriend
Messages: 5
Registered: March 2011
Junior Member
What is the state of the "Use WebKit if available" option when you try to open design tab?
WebKit support in GWTD actually doesn't use SWT Browser and it is independent of browser-related Eclipse options.
Please try the following:
make link /usr/lib64/libwebkit-1.0.so.0 -> /usr/lib64/libwebkit-1.0.so.2.17.9
run eclipse without anything which sets it browser to mozilla/xulrunner engine
make sure that you have "Use WebKit if available" preference enabled
try to open design tab
Re: Cannot create SWT browser after eclipse exit and restart [message #1016518 is a reply to message #1016303] Wed, 06 March 2013 18:18 Go to previous messageGo to next message
Rich Fleck is currently offline Rich FleckFriend
Messages: 8
Registered: July 2009
Junior Member
What is the state of the "Use WebKit if available" option when you try to open design tab?

I cannot find this option in Preferences
I'm wondering if it is because WindowBuilder UI Toolkits shows the
GWT / Plugin for Eclipse not installed.

I installed the GWT plugin from
http://dl.google.com/eclipse/plugin/4.2

If I try to install GWT from the UI Toolkits I get an error message
Unable to read repository at http://dl.google.com/eclipse/plugin/3.7/
compositeContent.xml

Please try the following:
make link /usr/lib64/libwebkit-1.0.so.0 -> /usr/lib64/libwebkit-1.0.so.2.17.9

Tried adding the link. It didn't help.
Re: Cannot create SWT browser after eclipse exit and restart [message #1016770 is a reply to message #1016518] Thu, 07 March 2013 16:00 Go to previous messageGo to next message
Alexander Mitin is currently offline Alexander MitinFriend
Messages: 5
Registered: March 2011
Junior Member
Oh, I didn't notice that you are using GPE, it has no such option and it attempts to use WebKit by default and falls back to Mozilla if WebKit is not available.
Can you try with fresh clean Eclipse installation & workspace? I'm trying to rule out any misconfiguration problems you could have.
Also please try with clean Eclipse 3.7 and install only GWT Designer BETA from developers.google.com/web-toolkit/tools/download-gwtdesigner-beta
After that, if it still doesn't work, I need to look into your .log Eclipse file(s).
Re: Cannot create SWT browser after eclipse exit and restart [message #1016873 is a reply to message #1016770] Fri, 08 March 2013 01:22 Go to previous message
Rich Fleck is currently offline Rich FleckFriend
Messages: 8
Registered: July 2009
Junior Member
Ok I tried a fresh install of
eclipse-java-juno-SR2-linux-gtk-x86_64.tar
with
dl.google.com/eclipse/plugin/4.2
and a new workspace.
If I leave the Welcome tab in the interface or
check the Web browser setting
the Designer tab works.
Otherwise I get the SWT error.

Also I tried installing
eclipse-java-indigo-SR2-linux-gtk-x86_64.tar
Installing GWT Designer from
http://dl.google.com/eclipse/inst/d2gwt/beta/3.7
and GWT for eclipse without the Designer from
http://dl.google.com/eclipse/plugin/3.7
and a new workspace.
If I leave the Welcome tab in the interface or
check the Web browser setting
the Designer tab works.
Otherwise I get the SWT error.

Perusing the .log file I noticed the default installation was picking up
the old java so I used the command line arg -vm /usr/java/latest/bin/java
Still get the SWT error if I don't check the Web browser setting.
Previous Topic:Can not find GroupLayout???
Next Topic:Parse problems in design mode after reparse
Goto Forum:
  


Current Time: Thu Apr 25 12:43:24 GMT 2024

Powered by FUDForum. Page generated in 0.04127 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top