Wednesday, April 9, 2014

Java Installation on Linux

Java can be installed on Linux as

  • Download Java ( JDK 6 Update 24   

  • Creating a Directory for the Java Installation file
 [[email protected] Desktop]# mkdir -p /usr/java  
 [[email protected] Desktop]# cd /usr/java/  
 [[email protected] java]# du -sh jdk-6u24-linux-i586.bin  
 82M   jdk-6u24-linux-i586.bin  
 [[email protected] java]# chmod 777 jdk-6u24-linux-i586.bin  
 [[email protected] java]# ls -ltr jdk-6u24-linux-i586.bin  
 -rwxrwxrwx 1 ankit ankit 84927175 Apr 1 01:18 jdk-6u24-linux-i586.bin  

  • Installing the Java 
 [[email protected] java]# ./jdk-6u24-linux-i586.bin  
 [[email protected] Desktop]# ln -s /usr/java/jdk1.6.0_24/bin/java /usr/bin/java   

  • Finally check the version of the Java as
 [[email protected] bin]# java -version  
 java version "1.6.0_24"  
 Java(TM) SE Runtime Environment (build 1.6.0_24-b07)  
 Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)  


Post a Comment