It is a bundle of software that you can use to develop Java based applications. Java Development Kit is needed for developing java applications.
JRE (Java Runtime environment) :
It is an implementation of the Java Virtual Machine which actually executes Java programs. Java Run Time Environment is a plug-in needed for running java programs.
Here are the steps those I followed :
=======================
1. wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u21-linux-x64.bin?BundledLineItemUUID=YeSJ_hCxIl0AAAEqJYBp5yJ3&OrderID=luWJ_hCxQbYAAAEqDYBp5yJ3&ProductID=xKiJ_hCySHIAAAEpT7wzBGsB&FileName=/jdk-6u21-linux-x64.bin
Note : You can get the .bin file from the sun.com's site. Oracle is now the owner of sun. You can search the "download + jdk-6u21-linux-x64.bin" in google to get the binary.
2. chmod +x above_bin_file
3. ./above_bin_file
4. Now you'll see RPM file of JDK. So, execute the following command to install it:
----
root@server [/usr/local/src]# rpm -Uvh jdk-6u21-linux-amd64.rpm
----
Here is the installation path :
64 bit Java: /usr/java/64/ or /usr/java... (or /opt/java/64/...)
32 bit Java: /usr/java/... (or /opt/java/...)
4. Added JAVA_HOME path like :
root@server [/]# grep JAVA_HOME ~/.bash_profile
JAVA_HOME=
root@server [/]#
and
root@server [/]#export PATH=$PATH:/usr/java/64/jdk1.6.0_21/bin
root@server[/]# grep jdk ~/.bash_profile
JAVA_HOME=/usr/java/64/jdk1.6.0_21
export PATH=$PATH:/usr/java/64/jdk1.6.0_21/bin
You can do like :
echo "JAVA_HOME=/usr/java/jdk1.6.0_21" >> ~/.bash_profile
echo "export PATH=$PATH:/usr/java/jdk1.6.0_21/bin" >> ~/.bash_profile
6. Check the path(You may logout and login into the server) :
root@fre [/]# echo $JAVA_HOME
/usr/java/64/jdk1.6.0_21
root@server[/]
=======================
That's it. Try :)
By : webhostingtalk.com
Labels :
Sever Linux

Previous Article


Responses
0 Respones to "How to install jdk1.6 on 64 bit linux machine?"
Post a Comment
»Thank you for reading this article
If you have questions or comments, please leave a comment
»You can click on the Subscribe by email to subscribe comments of this post
»You can register directly link pictures, mp3, video on the comment form.
»You may use some HTML tags such
»Please post comments polite and typing accented Vietnamese if possible
»Thank the good faith comment