Description of the. classpath file in the Eclipse project:
The following is the content of A. classpath file:
<? XML version = "1.0" encoding = "UTF-8"?>
<Classpath>
<! -- Source code directory -->
<Classpathentry kind = "src" Path = "src"/>
<! -- The project references the external lib directory (relative path is preferred) -->
<Classpathentry kind = "lib" Path = "G:/java_ocr/Asprise-OCR-Java-Windows_XP_32bit-4.0/aspriseocr. Jar"/>
<Classpathentry kind = "lib" Path = "lib/xstream-1.3.1.jar"/>
<Classpathentry kind = "lib" Path = "lib/xpp3_min-1.1.4c.jar"/>
<Classpathentry kind = "lib" Path = "lib/commons-logging.jar"/>
<Classpathentry kind = "lib" Path = "lib/htmlparser. Jar"/>
<Classpathentry kind = "lib" Path = "lib/JDOM. Jar"/>
<Classpathentry kind = "lib" Path = "lib/log4j-1.2.8.jar"/>
<Classpathentry kind = "lib" Path = "lib/lucene-1104.jar"/>
<Classpathentry kind = "lib" Path = "lib/mysql-connector-java-5.0.0-beta-bin.jar"/>
<Classpathentry kind = "lib" Path = "lib/xml-apis.jar"/>
<Classpathentry kind = "lib" Path = "lib/nekohtml. Jar"/>
<Classpathentry kind = "lib" Path = "lib/xalan. Jar"/>
<Classpathentry kind = "lib" Path = "lib/xercesimpl. Jar"/>
<Classpathentry kind = "lib" Path = "lib/JS. Jar"/>
<Classpathentry kind = "lib" Path = "lib/cobra. Jar"/>
<Classpathentry kind = "lib" Path = "lib/jdmkrt. Jar"/>
<! -- JDK compilation container -->
<Classpathentry kind = "con" Path = "org. eclipse. jdt. launching. jre_container/org. eclipse. jdt. internal. debug. UI. launcher. standardvmtype/jdk1.6.0 _ 06 "/>
<! -- Class directory -->
<Classpathentry kind = "output" Path = "bin"/>
</Classpath>
Note:
1. <classpathentry kind = "src" Path = "src"/>
Meaning: Path of the source code of the project -- under the SRC file of the current project path
2. <classpathentry kind = "lib" Path = "G:/java_ocr/Asprise-OCR-Java-Windows_XP_32bit-4.0/aspriseocr. Jar"/>
Meaning: The External jar package to be applied in this project, the specific path is G:/java_ocr/Asprise-OCR-Java-Windows_XP_32bit-4.0/aspriseocr. Jar here the absolute path is used
Note: Do not apply absolute paths. In this case, the jar package cannot be found during project load. We need to use <classpathentry kind = "lib" Path = "lib/Cobra. jar "/>
This relative path format uses relative paths. When we load an existing project from the file using eclipse, we do not need to re-introduce the jar package.
3. <classpathentry kind = "output" Path = "bin"/>
Meaning: The class files compiled by this project are stored in the bin directory of the current project path.