Friday, October 30, 2009

Running your own eclipse on Ubuntu 9.10 (karmic)

In you eclipse dir do


$ mv eclipse eclipse.bin
$ touch eclipse
$ chmod a+x eclipse


And put the following in the new eclipse file


#! /bin/sh
LD_LIBRARY_PATH=/usr/lib/jni GDK_NATIVE_WINDOWS=true $(dirname "$0")/eclipse.bin


The LD_LIBRARY_PATH is there to make the javahl svn connector work (along with sudo apt-get install libsvn-java)

The GDK_NATIVE_WINDOWS is there to fix annoying behaviour that appeared in 9.10 where some window content in popups isn't refreshed and some buttons don't respond well to clicks (or not at all)