Friday, September 24, 2010

Quick fix for Eclipse Galileo GDK issue in Ubuntu Karmic Koala

Due to an incompatibility issue with GDK windows kit in Eclipse Galileo version in Ubuntu Karmic Kola environment, some buttons of Eclipse IDE are disabled, which blocks users from creating a simple Java project in Eclipse.

There is a quick fix for this issue.

Write a wrapper script (eclipse.sh) including following lines
export GDK_NATIVE_WINDOWS=1 # This line contains the fix.
/home/sajith/Dev/IDE/eclipse/eclipse # This line is for executing eclipse.

Setting Your Development Environment in Ubuntu (10.04)

Setting JAVA_HOME variable

If .bash_profile file is not in the ~ directory, use .bashrc file instead.

export JAVA_HOME variables and add those to PATH as follows.

export JAVA_HOME=/home/sajith/Software/jdk1.6.0_19
export PATH=$PATH:$JAVA_HOME/bin



Creating a symbolic link for Java

When you are trying to start up eclipse and then If you getting an error like this

"A Java Runtime Environment (JRE) or Jave Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations"

you have to create a symbolic link to java should be created in /usr/bin

For that excecute the following command
$ ln -s /home/sajith/Software/jdk1.6.0_19/bin/java /usr/bin/java