| Cannot create SWT browser after eclipse exit and restart [message #1005823] |
Mon, 28 January 2013 15:44  |
Rich Fleck 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 #1016244 is a reply to message #1016096] |
Tue, 05 March 2013 10:48   |
Alexander Mitin 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 11: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 16:19   |
Rich Fleck 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 16:20] Report message to a moderator
|
|
|
|
|
|
| Re: Cannot create SWT browser after eclipse exit and restart [message #1016873 is a reply to message #1016770] |
Thu, 07 March 2013 20:22  |
Rich Fleck 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.
|
|
|
Powered by
FUDForum. Page generated in 0.01897 seconds