Friday, September 24, 2010

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


No comments: