1. Installation of jdk
First download jdk-6u26-windows-i586 and install it, install it to the folder D:\ProgramFiles\Java\jdk1.6.0_26, the default is to install it to the c drive. If you change it to D drive, you need to build these folders yourself! ! ! If the C drive is enough, just go directly to the C drive to save trouble.
After installation, click My Computer - Properties - Advanced - (System Variables) New, create a new variable JAVA_HOME , the content is D:\ProgramFiles\Java\jdk1.6.0_26. This is not enough, find Path in the system variables , click Edit, press the Home key on the keyboard to move the cursor to the front, and add: %JAVA_HOME%\bin;
Click start--run--cmd, enter javac to test whether the installation is successful, you know!
Before installing the development IDE, you can use the text editor to test a java program. Create a new folder javaWorkspace in the F drive, and then create a new text file, the content is:
Select the save type as "All files", do not save as txt. The name is: HelloJava.java. [1, the suffix cannot be less. 2. This name must be the same as the class name in the program]
After starting to run cmd, enter "F:" and press enter to enter the f disk [ Grandma, this piece can't get in with the cd command! I 've been used to linux, I'm really not used to it ], then cd javaWorkspace, enter javac HelloJava.java, this command will compile the source program into a .class file, which is the executable Java bytecode file. Then enter: java HelloJava, execute the compiled HelloJava.class bytecode file. If you enter java HelloJava.class is not executed!
Second, the installation of eclipse
Just decompress eclipse-jee-indigo-SR2-win32 directly!
Third, the configuration of Tomcat