1 , Windows - Preferences - Server - Runtime Environments
2 , " ADD "button, select Tomcat v6.0
3 , Tomcat installation directory on the right. Browse , select Tomcat installation directory, JRE Select jdk1.6.0_30
4 , JRE on the right. installed JREs
5 JDK - directgry path c:\program files\ Java\jdk1.6.0_30
6 , create a server file - new - others - server - apache - tomcat6.0 - browse select tomcat installation path
7 , the following window Server Middle Right- Start
8 , the Web items added to this servlet , right- Add and remove
9 , create dynamic Web projec default output folder webcontent\web-inf\classes e:/java/ How to eclipes dev web project
9.1windows->preferences->general->workspace Right side Text File Encoding , select Other , change to UTF-8
10.
We often put other people's projects Copy two times to develop or refer to yourself here. Hint httpservletrequest cannot reference
Action:
Add Library--Server Runtime->next, Project->properties, Java Build Path Choose your Finish, Server
of the imported Project JDK different versions, changing the cost of the machine JDK
Alt+enter-javabuild Path, Add library->jar system Library
11, Stack, memory overflow
Select Run Configurations
Added at the end, note: spaces
-xms512m-xmx1024m-xx:permsize=256m-xx:maxpermsize=512m
12.
Eclipse Operation Skills
withalt+/manual control of Automatic prompting (recommended)Window->preferences->general->keysFindContent Assist, FirstRemove Binding (Remove Bindings),and thenBinding(Press thealt+/) whenChooseEditing Textwe can,OK
Alt +/ automatically bring out code
13. cannot put other items in the folder Copy come on, error. is out of sync with file system
Select Item -f4 Refresh
Eclipse Configuration steps