@ How to install java on CentOs.
@ Changes a user for the root.$ sudo -s
@ Decompresses jdk-7u75-linux-x64.tar.gz (or upper version).
$ tar xvf /usr/local/src/jdk-7u75-linux-x64.tar.gz
@ Moves the java directory under the local directory.
$ mv /usr/local/src/jdk1.7.0_75 /usr/local/java
@ Changes the user and group ownership of each given file for root.
$ chown -R root.root /usr/local/java
@ Add the following comment into a user in /home/njoonk/.bash_profile
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
No comments:
Post a Comment