Http://blog.chinaunix.net/u/31541/showart_266332.html
Modified Version
1. Build a development environment in Windows
1. Download and install JDK for Windows from http://java.sun.com. Assume that the installation directory is C:/jdk6.0.
2. Set the related environment (in Windows XP) for example:
1. Right-click my computer on the desktop and select Properties
2. Select the "advanced" tab, find the system variables, and click "new" below"
3. variable name: java_home; Value: C:/jdk6.0 (your JDK installation directory); click "OK ".
Note: C:/jdk6.0 cannot be followed by a; number.
4. Create in the same way. The variable name is classpath and the value is % java_home %/LIB ;.
Note: It is followed by a semicolon and a dot (in English). It cannot be an error.
Note: if it is placed at the beginning or in the middle of another classpath path, it must exist. If it is placed at the end, no; sign is required. The English ending point is the meaning of the current folder. The plus or minus sign also depends on the start, middle, or end.
5. Find "path" in the system variable, click "modify", and append "; % java_home %/bin" to the end of the corresponding value. The quotation marks are not included, click "OK" until all windows are closed.
Note: If a path is added to the end of an existing project, it does not matter if the end is not added. If it is added to the beginning or in the middle, A; sign is required.
6. Open the "run" window, enter "cmd" and press Enter. In the prompt window that appears, enter "javac-version" and press Enter. Similar information such as "javac 1.6.0" appears, the success is also achieved.
Note: It is best to use the javactest. Because some programs have copied java.exe to system32, even if the bin path under the Java installation directory is not set, it may run normally, thus affecting the test results.
Note: After modifying the environment variables, restart cmd.
7. install your development IDE, such as Eclipse and JBuilder.