In Windows 7, configure JDK environment variable parameter settings:
1. Install JDK. You can customize the installation directory and other information during the installation process. For example, select D: \ Program Files (x86) \ Java \ jdk1.6.0 _ 25 as the installation directory.
2. After the installation is complete, right-click "my computer", click "properties", click "Advanced System settings", and click "environment variables ",
4. In "system variables", set three attributes: java_home, path, and classpath (Case Insensitive). if it already exists, click "edit". If it does not exist, click "new ":
(1). java_home indicates the JDK installation path, which is the path selected during installation.D: \ Program Files (x86) \ Java \ jdk1.6.0 _ 25
(2) Add % java_home % \ bin; % java_home % \ JRE \ bin under the path item. Note that the names are separated by semicolons. I have installed the Oracle database here, so before it.
(3) Add:.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. jar in the classpath item (Add. to indicate the current path ),
5. "Start"->; "run", type "cmd", and type the command "javac". The following screen is displayed, indicating that the environment variable is successfully configured.