-->

Wednesday, April 9, 2014

Java Installation on Linux

Java can be installed on Linux as

  • Download Java ( JDK 6 Update 24
 https://www.oracle.com/technetwork/java/javase/downloads/java-se-6u24-download-338091.html   


  • Creating a Directory for the Java Installation file
 [root@localhost Desktop]# mkdir -p /usr/java  
 [root@localhost Desktop]# cd /usr/java/  
 [root@localhost java]# du -sh jdk-6u24-linux-i586.bin  
 82M   jdk-6u24-linux-i586.bin  
 [root@localhost java]# chmod 777 jdk-6u24-linux-i586.bin  
 [root@localhost 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 
 [root@localhost java]# ./jdk-6u24-linux-i586.bin  
 [root@localhost Desktop]# ln -s /usr/java/jdk1.6.0_24/bin/java /usr/bin/java   

  • Finally check the version of the Java as
 [root@localhost 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)  

0 comments:

Post a Comment