A detailed record of the construction of the java web (jdk, eclipse, Tomcat) development environment under windows

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:

publicclassHelloJava{ publicstaticvoidmain(String[]args){ System.out.println("HelloJava,Iloveyou!"); } }



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

Unzip apache-tomcat-6.0.35 and configure environment variables. Add CATALINA_HOME to the system variable , the content is: F:\Learning\Leige Information 2013-1-17\tomact\apache-tomcat-6.0.35\apache-tomcat-6.0.35
Click on startup under the bin folder in the above path, then enter http://localhost:8080/ in the browser, and if you see this picture after enter, the configuration is successful! If you close it, you must click shutdown, otherwise it will be invalid to click by hand.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324069502&siteId=291194637