Black preview in GWT Designer in Eclipse on Ubuntu

Unfortunatly there’s a small snag when you’re using GWT designer on ubuntu with the libwebkit libs. When libwebkitgtk-1.0.so.2 isn’t found, the GWT designer will display a black field when you’re editing gui items, as shown on the example below:

GWT Designer on Ubuntu

You can easily solve this by symbolic linking to the already existing libwebkit library. Only execute the commands which are shown in bold:

joris@dipshit:~$ cd /usr/lib
joris@dipshit:/usr/lib$ ls -lhatr |grep libwebkit
-rw-r--r--   1 root root       19M 2011-04-20 14:52 libwebkitgtk-1.0.so.0.6.0
lrwxrwxrwx   1 root root        25 2011-08-12 19:14 libwebkitgtk-1.0.so.0 -> libwebkitgtk-1.0.so.0.6.0
joris@dipshit:/usr/lib$ sudo ln -s libwebkitgtk-1.0.so.0 libwebkit-1.0.so.2
joris@dipshit:/usr/lib$ ls -lhatr |grep libwebkit
-rw-r--r--   1 root root       19M 2011-04-20 14:52 libwebkitgtk-1.0.so.0.6.0
lrwxrwxrwx   1 root root        25 2011-08-12 19:14 libwebkitgtk-1.0.so.0 -> libwebkitgtk-1.0.so.0.6.0
lrwxrwxrwx   1 root root        21 2011-09-06 23:04 libwebkit-1.0.so.2 -> libwebkitgtk-1.0.so.0
joris@dipshit:/usr/lib$

Remark; This’ll create the symbolic link based on the link which Ubuntu already placed. If we would place it on 0.6.0, there might be a problem when we upgrade libwebkitgtk.

Happy designing!

Advertisements

4 thoughts on “Black preview in GWT Designer in Eclipse on Ubuntu

  1. Mahesh Nayak

    Hi Joris, i did exact same what u explained,but now when click designer window .. eclipse automatically exists.. i am using eclipse(indigo) and ubuntu 11.04(64bit)…

    Thanks

    Mahesh Nayak

    1. Hi Mahesh, that’s fairly odd, I would not know the answer to that.
      I’m using the 32bit version of Natty my self, thus far without problems. That might be the problem since the other factors seem to be the same between our setups. A small comfort might be that 11.10 amd64 will include 32bit libs, which could solve this problem.
      If you’re unwilling to wait, you might want to try running the 32bit live CD and try running eclipse with GWT designer from an usb stick to make sure these steps are working.
      Ps. I don’t know the exact reason why you’ve chosen the 64bit version, if it was because of the 4GB 32bit memory restriction then the PAE (Physical Address Extension) (link to ubuntu wiki) kernel might be a solution for you to make use of 4+GB of internal memory. (you’ll only have the limitation that the maximum memory per process is 4GB)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s