Wednesday, January 20, 2010

Eclipse Issues on Fedora 12

Now if you are facing issues with eclipse on Fedora 12, you need to do the following depending on how you start eclipse.

You will need to export GDK_NATIVE_WINDOWS=true before you start eclipse.

Relevant eclipse bug: https://bugs.eclipse.org/bugs/show%5Fbug.cgi?id=291257



If you use command line to start eclipse
:

Create a script that looks as follows:

#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true
$ECLIPSE_HOME/eclipse $*


If you use a Desktop shortcut under KDE (Dolphin)
:

Then in the Properties dialog, under the application tab do the following:

export GDK_NATIVE_WINDOWS=1; /opt/eclipse/eclipse -showlocation -data /home/xxx/workspace

Please do not forget to the rename the workspace directory propertly. Also verify whether your eclipse installation directory is /opt/eclipse or change it accordingly.