0% found this document useful (0 votes)
9 views1 page

Practical 5

This document provides a step-by-step guide for downloading and installing Java JDK version 7u71 on a Linux system. It includes instructions for downloading the file, extracting it, moving it to the appropriate directory, and setting up the necessary environment variables. The final step involves updating the user's .bashrc file to include the JAVA_HOME and PATH settings.

Uploaded by

tosam67394
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Practical 5

This document provides a step-by-step guide for downloading and installing Java JDK version 7u71 on a Linux system. It includes instructions for downloading the file, extracting it, moving it to the appropriate directory, and setting up the necessary environment variables. The final step involves updating the user's .bashrc file to include the JAVA_HOME and PATH settings.

Uploaded by

tosam67394
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Step 1

Download java (JDK <latest version> - X64.tar.gz) by visiting the following


link www.oracle.com

Then jdk-7u71-linux-x64.tar.gz will be downloaded into your system.

Step 2
Generally you will find the downloaded java file in Downloads folder. Verify
it and extract the jdk-7u71-linux-x64.gz file using the following
commands.

$ cd Downloads/
$ ls
jdk-7u71-linux-x64.gz

$ tar zxf jdk-7u71-linux-x64.gz


$ ls
jdk1.7.0_71 jdk-7u71-linux-x64.gz

Step 3
To make java available to all the users, you have to move it to the location
/usr/local/. Open root, and type the following commands.

$ su
password:
# mv jdk1.7.0_71 /usr/local/
# exit

Step 4
For setting up PATH and JAVA_HOME variables, add the following
commands to ~/.bashrc file.

export JAVA_HOME=/usr/local/jdk1.7.0_71
export PATH=$PATH:$JAVA_HOME/bin

Now apply all the changes into the current running system.

You might also like