Steps
- 1Launch the Terminal and sudo su to root.
- 2Identify where is Java installed on your Ubuntu Machine by typing
which java
.
- 3Now to set the JAVA_HOME globally, we edit the bash.bashrc file.
- 4At the end of the file type the following, one line at a time.
- 5Line 1. JAVA_HOME=/usr/lib/jvm/java-6-sun .
- 6Line 2. export JAVA_HOME
- 7Line 3. PATH=$PATH:$JAVA_HOME
0 comments:
Post a Comment