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.
No comments:
Post a Comment