GWT Designer Eclipse plugin in Ubuntu 12.04

Facebooktwittergoogle_plusredditpinterestlinkedinmailFacebooktwittergoogle_plusredditpinterestlinkedinmailby feather

If you are a Java Developer the chances you are running Eclipse too is big (I think :S). if it’s the case and you are developing GWT application then the chances you’ve already installed Google Plugin for Eclipse is even bigger, but for some reason Google plugin doesn’t play really well with Eclipse running in Ubuntu machine.
Whenever I install a newer version of Ubuntu the first thing I test after installing OpenJDK and Eclipse if GWT Designer will work this time, and as expected when you install the latest Ubuntu release (it’s 12.04) at the time I wrote this post, GWT Designer won’t work. But luckily there’s a work around.
If you have Eclipse already installed and both Google Plugin and GWT Designer installed, then you are ready to go ;).
This workaround have been tested under the 64bit version of Ubuntu.

1. Download and Install libhunspell-1.2-0 from here.
The package can be installed by running the following command: sudo dpkg -i libhunspell-1.2-0_1.2.14-4_amd64.deb

2. Download and install xulrunner-1.9.2 from here.
The package can be installed by running the following command : sudo dpkg -i sudo dpkg -i xulrunner-1.9.2_1.9.2.28+build1+nobinonly-0ubuntu0.11.04.1_amd64.deb.
3. Open Eclipse and look under Window->Preferences->Window Builder->GWT make sure “Use WebKit for rendering GWT UI (if available)” is unchecked.

GWTDesigner_disable_option

4. Create a new GWT web application, then create a UIBinder component to test if GWT Designer is working or not. If you see a black window when you open the designer as shown below:
GWTDesigner_blackpanel
then there’s one more step needs to be done.
Go to Window->Preferences->WindowBuilder then enable the following option “Disable Preview Window flickering workarounds (Linux only)” option.

GWTDesigner_.Disable_preview

Facebooktwittergoogle_plusredditpinterestlinkedinmailFacebooktwittergoogle_plusredditpinterestlinkedinmailby feather
  • Morgen

    Thank you for the very helpful post. I actually used this to get Nuvola Player working with Pandora Radio on 32-bit Xubunu 12.04. Apparently Webkit 1.8 does not play nicely with existing programs.

    • aelgali

      I’m glad it helped, thanks for your comment.

  • Steven Mulder

    I used the first workaround and it worked like a charm. Thanks a lot!

    • aelgali

      The only problem I had with the first workaround is when i installed nitrotask it started to crash because of incompatible version of libwebgtk so i had to use the second workaround.Β 
      Thanks for the feedback.

  • Tomo

    Thx a lot!

    • aelgali

      you’re most welcome

  • Bernard Landon

    Thanks a lot!

    • aelgali

      you’re most welcome

  • Tborja

    Did workaround 1. removal of libwebkitgtk also removed my installation of eclipse 3.7 and gimp 2.6. I just re-installed eclipse 3.7 using ubuntu software center and now Window Builder works. Window Builder is the designer that comes built in with the gwt eclipse plugin. Thanks for the fix.

  • Antonino

    Thank you very much! this info too it’s useful to ZK Studio under Ubuntu 12.04 πŸ˜‰

  • Christian

    Workaround 2 worked for me… Running Kubuntu 64bit and Eclipse Juno

  • mlux

    Has someone tested it with Ubuntu 12.10? Both workarounds are not working for me on Ubuntu 12.10 πŸ™

  • softnado

    Ubuntu 12.10 64bit, Eclipse Juno, workaround 2 worked. Thanks a lot.

  • Tested on Ubuntu 12.10 x64. The Workaround 2 works with me, but don’t forget to:
    – remove libwebkit-1.0-0 using ‘sudo apt-get install libwebkitgtk-1.0-0’
    – add -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false in eclipse.ini if the Designer only renders frames.

  • θ£•δΉŸ ι«˜θ¦‹

    This problem fixed? Really? I still get that error.