Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Linux Tutorial Installing Sun JDK on Linux

Related Tutorials


 
 

Share on Google+Share on Google+

Installing Sun JDK on Linux

Advertisement
Installing Sun JDK on Linux Installing Sun JDK on Linux (Fedora Core 3) Downloading Download the latest version of JDK from http://www.java.sun.com . I have downloaded jdk-1_5_0_01-linux-i586.bin for this tutorial. Installing Change to the

Installing Sun JDK on Linux (Fedora Core 3)

                         

Downloading 
Download the latest version of JDK from http://www.java.sun.com. I have downloaded jdk-1_5_0_01-linux-i586.bin for this tutorial.

Installing
Change to the directory where you downloaded the SDK ( I downloaded it in my home directory /home/deepak) and make the self-extracting binary executable:

chmod +x jdk-1_5_0_01-linux-i586.bin

Run the self-extracting binary, this will display the License agreement text and will ask you to accept the agreement:

./jdk-1_5_0_01-linux-i586.bin

Above command should create a directory called jdk1.5.0_01 in the /home/deepak directory. Move the SDK directory to /usr/java/ .Create /usr/java if it doesn't exist. Here is the command used:

mv jdk1.5.0_01 /usr/java

Set the JAVA_HOME environment variable, by modifying /etc/profile so it includes the following:

JAVA_HOME="/usr/java/jdk1.5.0_01"
export JAVA_HOME

/etc/profile is run at startup and when a user logs into the system, so you will need to log out and log back in for JAVA_HOME to be defined.

Check to make sure JAVA_HOME is defined correctly using the command below. You should see the path to your Java SDK.

echo $JAVA_HOME
Output should be
/usr/java/jdk1.5.0_01

                         

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 30, 2005

Related Tutorials

Discuss: Installing Sun JDK on Linux  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:5
siyad
May 30, 2011
jdk

please get me jdk
Thyagaraju
July 9, 2011
JDK

I like JDK
zabeeh
October 3, 2011
jdk

i dont know how to install jdk in linux
Gagandeep Singh
October 30, 2011
java

i have to find out that how to install jdk's .bin format in linux
masoud
June 21, 2012
how to install .net frame work for linux.

how to install .net frame work for linux.
DMCA.com