Default Eclipse IDE: Eclipse
IDE for Java EE developers
1. First, explain the correct method and use the correct method to export the solution.
1. servers runtime: tomcat6.0 corresponds to dynamic web module version 2.5
2. Build path of the project:
(1) Source-Project compiled path (1, webcontent/WEB-INF/Classes 2, webroot/WEB-INF/classes), generally created by myeclipse project is webroot, the project created by eclipse is webcontent. Pay attention to the path of some configuration files.
2) Libraries: add the servers runtime and use the unified JRE.
3) modify the project code, unified as UTF-8/GBK/gb2312
Ii. FAQs
Move out of the javaweb project under SVN, select Dynamic Web project, select Dynamic according to the project's required servers Runtime
Web module version (which can solve the problem that eclipse cannot be recognized by servers when imported into myeclipse project, corresponding to 3rd items)
1, Servlet reported RED: could not find the corresponding servers Runtime Library (jsp-api.jar, servlet-api.jar)
2. Reference JAR file error: Use the JDK version specified by the project, change the JRE version at compile time; jar package under WEB-INF/lib, add to build path; modify the project code
3. servers cannot load projects: the corresponding project version corresponds to the corresponding running server
4. Failed to run servers. Check application *. XML, struts. XML, log4j. properties, JDBC. propertioes, Oscache. XML. system. XML, memcached. XML, hibernate. cfg. XML ,*. FTL ,*. XML ,*. properties ,*. SQL, view database connections, cache servers, spring configuration files, and so on. troubleshoot memory allocation exceptions during database startup and troubleshoot memory allocation exceptions during program startup.
5. Start in debug mode, Starting sequence of Web. xml and breakpoint tracking
6. Start the invincible mode, Baidu and Google.