Our social:

Wednesday, 13 January 2016

how to install hava in linux

Java for Linux Platforms:

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


  1. Change to the directory in which you want to install. Type:
  1. cd <directory path name>
  1. For example, to install the software in the /usr/java/ directory, Type:
  1. cd /usr/java/

  1. 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
  1. Move the .tar.gz archive binary to the current directory.
  1. Unpack the tarball and install Java 
  1. tar zxvf jre-7u7-linux-i586.tar.gz

  1. The Java files are installed in a directory called jre1.7.0_07 in the current directory. 
  1. In this example, it is installed in the /usr/java/jre1.7.0_07 directory.
  1. Delete the .tar.gz file if you want to save disk space.

0 Comment: