Home > Ubuntu > Setting JAVA_HOME in Ubuntu

Setting JAVA_HOME in Ubuntu

I had spent a lot of time setting the $PATH on my Ubuntu but i forgot to document the procedure. So when my friend asked me, i wasn’t able to help him out. So this time i asked him to tell the solution so that i could note it down. The best place would be my blog.

JAVA_HOME=/usr/lib/jvm/java
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

Source: The Ubuntu Guy.

Categories: Ubuntu Tags: , , ,
  1. Nathan
    April 11, 2009 at 5:17 am | #1

    What file do you insert this text into?

  2. April 19, 2009 at 12:43 am | #2

    these commands are used at the command prompt if i am not wrong.

  3. May 10, 2009 at 11:04 pm | #3

    I hope export will work only with bash prompt. Better to mention it to avoid confusion

  1. No trackbacks yet.