Installing Java on Ubuntu 64 bit
Solution 1:
On the command line, type:
$ sudo apt-get install openjdk-7-jre
OR
1) Goto http://www.java.com/en/download/linux_manual.jsp 2) Download the 64-bit package.
Installation:
Change to the directory in which you want to install. Type:
cd <directory path name>
For example, to install the software in the /usr/java/
directory, Type:
cd /usr/java/
Note about root access: To install Java in a system-wide location such as /usr/local
, you must login as the root user to gain the necessary permissions. If you do not have root access, install Java in your home directory or a subdirectory for which you have write permissions.
Move the .tar.gz
archive binary to the current directory.
Unpack the tarball and install Java:
tar zxvf jre-7u7-linux-x64.tar.gz
The Java files are installed in a directory called jre1.7.0_07
in the current directory. In this example, it is installed in the /usr/java/jre1.7.0_07
directory. When the installation has completed, you will see the word Done.
Delete the .tar.gz
file if you want to save disk space.