Install Java/JDK 1.7

933 views

Installation on Linux Platform

Change to the directory in which you want to install.


cd directory_path_name
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/
 

Move the .tar.gz archive binary to the current directory. Unpack the tarball and install Java
 

tar zxvf jdk-****.tar.gz
 

The Java files are installed in a directory called jdk1.x.x_x in the current directory.


In this example, it is installed in the /usr/java/jdk1.x.x_x directory.
When the installation has completed,you will see the word Done.


Delete the .tar.gz file if you want to save disk space.


Setup JAVA_HOME

Open terminal & edit ~/.bash_profile with your favourite editor

Insert export command for JAVA_HOME as below.

Save exit


Installation on Windows Platform
Double Click on the setup file. (jdk-7u2-window-x64 is jdk file in my case)
Following Setup window will gets opened.

Now Click on “Next” button.

It will prompt you optional features to be installed. Let it be default. Now click on “next”.
Now Keep Path as default.

After following series of above screenshots finish window will gets opened. Now next step is to setting up class path so that you can run java programs.
class path setup

Right click on my computer. select properties.

click on advanced system settings

click on Environment variable.

click on new button.

insert JAVA_HOME in variable name and put your jdk path (e.g c:\program files\java\jdk6.0.1_13) variable value.
        

asked Mar 8, 2013 by brion (600 points)
edited Feb 11, 2014 by kaldinadmin

Please log in or register to answer this question.

...