how to install hava in linux
The instructions below are for installing version Java 7 Update 7 (7u7). If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal. Example: For Java 6u35 replace 7u7 with 6u35. Note that, as in the preceding example, the version number is sometimes preceded with the letter u
, and sometimes it is preceded with an underbar, for example, jre1.7.0_07
.
- 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 the Java in your home directory or a sub directory 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-i586.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.
- Delete the .tar.gz file if you want to save disk space.
0 Comment:
Post a Comment