- install jdk
- install apache-tomcat
- install myeclipse
Set environmental variable
1
2
3
4
| JAVA_HOME:D:\Java\jdk1.6.0_38
JRE_HOME:D:\Java\jdk1.6.0_38\jre
Path:%JAVA_HOME%\bin
check:java -version
|
- Keep D:\apache-tomcat-6.0.36\bin\setclasspath.bat “set JAVA_HOME=D:\Java\jdk1.6.0_38” same with JAVA_HOME.
- Modify port: D:\apache-tomcat-6.0.36\conf\server.xml
1
| <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
|
- Set UTF-8 code: [Window->Preferences->General->Workspace->Text file encoding] other UTF-8
- Add jdk: [Window->Preferences->Java->Installed JREs->Add->Standard VM] check the added item
- Import project: [File->Import->General->Existing projects into workspace] or [File->Import->SVN->Checked out from SVN]
Reference