Create a project from Eclipse, the directories and files generated by Java project and Tomcat project __java

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.