New books, new systems, still have to assemble the weapons.
Document the installation and configuration of the JDK under the Win7 system.
1. Download JDK
Address: http://java.sun.com/javase/downloads/index.jsp
As a developer, download the JDK, click;
Select the Windows platform, click Download, need to login, you can download. (no real username, under the register can be, free, and later by the use of the regular).
2. Installing the JDK
Installation is very easy, and the installation of other software is no different, the path hypothesis does not need their own special settings, you can go all the way by default. Need to know the installation path, the configuration is required, after installation
My installation path here is e:/java/jdk1.6.0_20.
3. Setting of Environment variables
Win7 interface compared to XP made a little change, just do not affect the operation
Here you need to set Java_home, CLASSPATH, path three environment variables.
A), right click on "Computer", click "Properties"
Click "Advanced System Settings" in the left part of the popup screen
Select the "Advanced" tab and click "Environment variables" below.
In system variables, set the 3 property Java_home, CLASSPATH, Path (do not distinguish between uppercase and lowercase), if it already exists then click "Edit", do not exist then click "New";
b), java_home indicates the installation of the JDK path, that is, the path that was selected at the time of installation e:/java/jdk1.6.0_20, this path contains lib,bin,jre such as directory (this variable is the best setting, because after the implementation of tomcat,eclipse and so need to depend on * this variable);
c), path allows the system to identify the Java command, no matter what path, here, note that the path should be existing, do not create a new, find the path, click "Edit"; at the top of the value, add the following statement. Assuming that the path variable is overwritten, some of the main commands will not be found under the cmd that will result.
%java_home%/bin;%java_home%/jre/bin;
D), Classpath is the Java load class or lib path, there are only classes in Classpath, Java command talent recognition, set to:
.; %java_home%/lib/dt.jar;%java_home%/lib/tools.jar (to Add. Indicates the current path)
%java_home% is referring to the previously specified java_home;
4, check the installation configuration is correct
Click "Start" and type "cmd";
, enter
Execute "java-version", "Java", "Javac" three commands to see if the output is similar. The screen appears, the installation configuration OK.
The following will allow you to start the Java journey.
Learning Exchange >^< Welcome to shoot Bricks