Tuesday, January 10, 2012

How to Install JDK 7 (English)

Based on
http://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html
http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jdk-installation-windows.html



Java Development Kit (JDK) 1.7 (officially named Java SE 7), which is freely available from Sun Microsystems (now part of Oracle), is needed for writing Java programs. JDK can be downloaded from the Java mother site @ http://java.sun.com (or http://www.oracle.com/technetwork/java/index.html).


There is more below.
Ниже есть продолжение.


STEP 0: Un-install Older Version of JDK/JRE

First of all assert that service Windows Installer (msiexec) is running. Go to Control Pane-l->Administrative Tools->Computer Management. Go to Service and Application->Services->Windows Installer. And start it, if needed.

If you have previously installed older version of JDK/JRE, un-install them. Run "Control Panel" ⇒ "Add or remove proramms" ⇒ Un-install programs such as "Java SE Development Kit" and "Java SE Runtime". If you are not sure, check.


Check your Environment Variables (JAVA_HOME and path).
Go to Control Pannel->System->Advanced->Environment Variables and set

JAVA_HOME variable to C:\Program Files\java\jdk1.7.0
Path add at the beginning %ProgramFiles%\Java\jdk1.7.0\bin\

Reboot the computer.

STEP 1: Download JDK

Goto Java SE download site @ http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Click the "Download" button under "JDK" of "Java SE 7".
Choose your operating platform, e.g., Windows x86 (for 32-bit Windows OS - "jdk-7u2-windows-i586.exe" 84MB); or Windows x64 (for 64-bit Windows OS).


STEP 2: Install JDK/JRE

Run the downloaded installer, which installs both the JDK (Java Development Kit) and JRE (Java Runtime) (and JavaFX 2.0 SDK). Change the installation path of the JDK and JRE to "C:\Program Files\java\jdk1.7.0" and "C:\Program Files\java\jre1.7.0" (and C:\Program Files\java\JavaFx2.0SDK), respectively (just strip _02 at the end, it is patch level).

I shall refer to the JDK installed directory as , hereafter, in this article.

STEP 3: Verify the JDK Installation

Launch a CMD shell (click the "Start" button ⇒ run... ⇒ enter "cmd"), and

Issue a "path" command to list the content of the PATH environment variable. Check the output and make sure that \bin is listed in the PATH.

prompt> path

PATH=c:\Program Files\java\jdk1.7.0\bin;......other entries......

Issue the following commands to verify that JDK is properly installed and display its version:

prompt> java -version

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

prompt> javac

Usage: javac
.........
.........


STEP 4: Don't use Java Quick Starter
Go to control panel-> Java.

- Go to Advanced tab->JRE Auto-download and check Prompt user.
- Go to Advanced tab->Miscallenious and uncheck Java Quick Starter.

STEP 5: Don't use jusched
Start->run->msconfig->Startup, uncheck jusched.

No comments:

Post a Comment