skip to main |
skip to sidebar
23:01
Unknown
Steps
1
Launch the Terminal and sudo su to root.
2
Identify where is Java installed on your Ubuntu Machine by typing
which java.
3
Now to set the JAVA_HOME globally, we edit the bash.bashrc file.
4
At the end of the file type the following, one line at a time.
5
Line 1. JAVA_HOME=/usr/lib/jvm/java-6-sun .
6
Line 2. export JAVA_HOME
7
Line 3. PATH=$PATH:$JAVA_HOME
8
Line 4. export PATH
.
9
Close the Terminal and re-open it and issue the command
echo $JAVA_HOME
. You should get the new path.
10
Type java -version , to see the version of Java installed.
0 comments:
Post a Comment