Jump to Navigation

139 - How to install Java and configure it

1. Java Installation

You can download it from Oracle Sun Developer Network.

# cp jdk-6u20-linux-i586.bin /usr
# chmod +x jdk-6u20-linux-i586.bin
# ./jdk-6u20-linux-i586.bin

・・・
Enter Yes.
・・・

* After executed the bin file, jdk1.6.0_20 is created in /usr

# ln -s ./jdk1.6.0_20 ./java

 

2. Configure a Library PATH.

# cd /etc/profile.d/

* Create java.sh & Edit it as the following.

# vi java.sh

--------------------------------------------------------------------------

#!/bin/sh
JAVA_HOME="/usr/java"
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH

--------------------------------------------------------------------------

 



Main menu 2

Story | by Dr. Radut