A brief discussion on Eclipse.classpath files

Source: Internet
Author: User
Tags zip

About Eclipse. classpath files:

<classpathentry exported= "true" kind= "con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/>

Each new Java Project (project) exists by default.

<classpathentry kind= "src" output= "km230/apitest/classes" path= "Km230/apitest/src"/>

Specifies the source file location, corresponding to the project properties in the source item in Java Build path, kind= "src" as the source file, the source file path, and output path to the class file after compiling the source file in this path.

<classpathentry kind= "src" path= "km230batch/src"/>

Specifies the source file location, corresponding to the project properties in the source item in Java Build path, kind= "src" as the source file, the path to the source file, and the output path of the class file after compiling the default output path.

<classpathentry kind= "Output" path= "Km230server/approot/web-inf/classes"/>

Specifies the default output path for the class file after compiling, corresponding to the default output path in the source item in Java build path in the project properties, kind= "Output" as the defaults for the class output path, and path to the corresponding output path.

Note: This one is available in the file and can only be one (two defaults cannot be present at the same time).

<classpathentry kind= "Lib" path= "Km230/lib/notes.jar"/>

Specifies the library file or directory used for the project, one of the items in the libraries item in the Java build path of the engineering attribute, kind= "Lib" as the library file or directory, and path is the library file or directory location.

Note: When you specify a library file (a non-library directory, usually a jar package, as if it were a zip, you don't know if there are any), you should include the file name.

<classpathentry kind= "var" path= "Junit_home/junit.jar" sourcepath= "Eclipse_home/plugins/org.eclipse.jdt.source" _3.0.0/src/org.junit_3.8.1/junitsrc.zip "/>

Specifies the library file or directory used by the project, corresponding to an entry in the libraries item in the project Properties Java build Path, kind= "var" to indicate a variable with the settings set in the global compilation path (window->prefrences->java- >build Path->classpath Variables), as above Eclipse_home, Path is the library file under this variable directory (it is also usually a jar package, like a zip, and I don't know if there are other).

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.