Friday,
May
8,

How to Install Java on Linux

|

It seems that every computer needs to have Java installed regardless of what platform it uses. With a little knowledge about the Linux system currently running and a few clicks here and there, installing Java is quick and easy and allows the computer access to things written in Java programming language.

Redhat Project Manager (RPM) Installation Instructions.

Step 1 Determine your operating system 32 bit or 64 bit and what type of Java to install. Redhat Project Manager (RPM) uses Redhat to install automatically, but the computer needs to have Redhat with this option available. If it’s on the computer or you're not sure, follow the instructions in Section 2 for self-extracting binary option.

Step 2 Download the file from Java’s website. Make sure you download the self-extracting file for either 32 bit or 64 bit depending on your operating system.

Step 3 Switch to the directory where you saved the file and execute the binary "./jre-6u3-linux-i586-rpm.bin."

Step 4 Change permission to make executable if necessary with "chmod 755 jre-6u3-linux-i586-rpm.bin."

Step 5 Execute RPM, once the file has been executed and type "Yes" to accept the license agreement and allow it to finish the install.

Step 6 Create a symbolic link like "(cd /usr/bin)," "(ln -s /usr/java/jre1.6.0_03//bin/java java)"or "(ln -s /usr/java/jre1.6.0_03//bin/javac javac.)"

Step 7 Type "java -version" to confirm version and type "rpm -qa grep jre" to confirm version against rpm database.


Self-Extracting Binary File Installation Instructions

Step 1 Download the file from Java’s website with the correct self-extracting file for either 32 bit or 64 bit depending on your operating system.

Step 2 Switch the directory to where you want file downloaded, for example change from "/home/gabby/java" to "cd /home/gabby/java."

Step 3 Change permission to executable on file from "chmod 755 jre-6u3-linux-i586.bin" to "execute file ./jre-6u3-linux-i586.bin."

Step 4 Accept the license agreement.

Step 5 Remember your directory and create symbolic link such as "ln -s /home/gabby/java/jre1.6.0_03/bin/java java" or "ln -s /home/gabby/java/jre1.6.0_03/bin/javac javac."

Step 6 Type "java -version" to confirm version.

0 comment:

Post a Comment

 

©2009 computer technology World | Template Blue by TNB