install JDK linux

1. download file .sh dari situsnya oracle
2. beri akses executable dengan peritah chmod +x
3. extract ./
4.

Set JAVA_HOME / PATH for all user

You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users:
# vi /etc/profile
Next setup PATH / JAVA_PATH variables as follows:
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin

Save and close the file. Once again you need to type the following command to activate the path settings immediately:
# source /etc/profile

install JDK linux install JDK linux Reviewed by Fitra Fadilana on 1:21 AM Rating: 5

No comments:

Powered by Blogger.