Today's research found, hehe, also wrote down.
Today, you created a project, a Java project, and a Tomcat project through Eclipse, which is found as follows:
One
Project: Generate a folder with the same name as the project, with the following only. Project files
Two
Java Project: Generates a folder with the same name as the project, with the SRC and bin folders below, and the. classpath and. Project files
Where the src folder is placed. Java source files, the Bin folder is a compiled. class file (Eclipse defaults, of course, it can be specified separately)
The contents of the Classpath file are as follows: <?xml version= "1.0" encoding= "UTF-8"?> <classpath> <classpathentry kind= "src" path= "src"/> <classpathentry kind= "con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/> ki nd= "Output" path= "Bin"/> </classpath>
Of course, when you create a new Java project, Eclipse designates the default JRE as the JRE for the project, regardless of whether it will be used later.
Three
Tomcat Project: Generates a folder that is the same as the project name, with the following
1 src: folder, put. Java source files
2 Bin: folder, basically no use
3 Web-inf: folder, very important
Classes: folder, default. class file output Directory
Lib: folder, General storage Struts.jar and other files
SRC: folder,
. Cvsignore: I don't know what to do with it.
4 Work: folder, basically no use
5. Classpath
6. Cvsignore
7. Project
The contents of the
8. tomcatplugin.classpath file are as follows: <?xml version= "1.0" encoding= "UTF-8"?> <classpath> <classpathentry kind= "Con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER" /> <classpathentry kind= "var" path= "tomcat_home/common/lib/ Servlet-api.jar "/> <classpathentry kind=" var " path=" TOMCAT_HOME/common/ Lib/jasper-runtime.jar "/> <classpathentry kind=" var " path=" TOMCAT_HOME/ Common/lib/jsp-api.jar "/> <classpathentry kind=" src " path=" WEB-INF/src " /> <classpathentry kind= "src" output= "work" path= "work"/> <classpathentry kind= "Output" path= "web-inf/classes"/> </classpath>
Of course a new Tomcat Project is created, and Eclipse designates the default JRE as the JRE for the project, and the servlet-api.jar/jsp-api.jar/in the configured Tomcat container The Jsaper-runtime.jar is automatically included, regardless of whether it will be used later. However, if you use the. jar files of other frames or databases, you need to manually load them in.