Install Java on Linux Machine
Download the latest JDK from http://java.sun.com/javase/downloads/index.jsp
Select jdk-xxx.xx.Linux.xxx.bin to download for Linux machine
This is a binary file so execute this file.
$ cd /usr
$ ./jdk-xxx.x-linux-i586.bin
Edit your bash profile file to set the Java home.
$cd
$vi .bash_profile
Add/edit these lines
PATH=/usr/jdk-xxx-x.x/bin
JAVA_HOME=/usr/jdk-xxx-x.x/
export JAVA_HOME
#Save and Exit from the vi
$source .bash_profile
Check the java version
$ java -version
No comments:
Post a Comment