Total Pageviews

Wednesday, 6 February 2013

How to Setup Your Java_Home Path in Ubuntu

Steps

  1. 1
    Launch the Terminal and sudo su to root.

  2. 2
    Identify where is Java installed on your Ubuntu Machine by typing

    which java
    .

  1. 3
    Now to set the JAVA_HOME globally, we edit the bash.bashrc file.

  1. 4
    At the end of the file type the following, one line at a time.

  1. 5
    Line 1. JAVA_HOME=/usr/lib/jvm/java-6-sun .
  2. 6
    Line 2. export JAVA_HOME

  1. 7
    Line 3. PATH=$PATH:$JAVA_HOME

  1. 8
    Line 4. export PATH
    .
  2. 9
    Close the Terminal and re-open it and issue the command

    echo $JAVA_HOME

    . You should get the new path.
  3. 10
    Type java -version , to see the version of Java installed.

    Via[WikiHow]

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...