eclipse In Engineering .classpath Document meaning : Here's a .classpath The contents of the document : 
< ?xml version="1.0" encoding="UTF-8"?> < classpath>         <!-- Source directory -->         <classpathentry kind="src" path="src"/> 
        <!-- Engineering refers to external lib Catalog ( It's better to use the relative path ) -->                 <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"/>                 <!-- JDK Compile time container , Set up java Automatically generated after the project -->         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_06"/>         <!-- class Catalog , about web engineering path Namely WebRoot/WEB-INF/classes 了 -->         <classpathentry kind="output" path="bin"/> < /classpath> 
explain : 1、<classpathentry kind="src" path="src"/> meaning : The source code location path of this project --》 Under the current project path src Under the document 2、<classpathentry kind="lib" path="G:/java_ocr/Asprise-OCR-Java-Windows_XP_32bit-4.0/aspriseOCR.jar"/> meaning : External application of the project jar package , The specific path is G:/java_ocr/Asprise-OCR-Java-Windows_XP_32bit-4.0/aspriseOCR.jar Here we use the absolute path Be careful : Let's not apply absolute paths , In this case, we load When it comes to engineering, it can't be found jar We need to use <classpathentry kind="lib" path="lib/cobra.jar"/> The format of this relative path , They all use relative paths , So when we use eclipse From file load An existing project does not need to be reintroduced jar It's packed 3、<classpathentry kind="output" path="bin"/> meaning : The compiled class file of this project is stored under the current project path bin Under the table of contents

Due to a recent open source project (jmeter) Source code for the compilation of the work , Found a lot of small problems , Here's a summary . about .classpath For the meaning of the document, please refer to the post above . Generally, after downloading a source code package , We can build new java engineering , Then import , Then put the eclipse.classpath Copy the content in to our new java In the project .classpath In file . Now we can compile the project , There are always problems here ( If it refers to an external jar file , This can be .classpath View in file ), Namely lib Medium jar No document , Or the name and .classpath The differences described in the document . Then the compiler will prompt *** The bag doesn't exist . At this point, we need to modify it manually lib Under the table of contents jar The name of the file , It's them and .classpath The same in the file .

java web project .classpath More articles on file parsing

  1. linux Next use renameTo Methods to modify java web Folder name problem in project

    After testing , stay Linux Installation in the environment tomcat, Then start the project , Used in projects java.io.File.renameTo(File dest) The method is feasible . Previously running code locally can be modified , And then to Linux clothing ...

  2. Java Web Project documents / Folder upload and download

    demand : Support bulk file upload (20G) And download , At the same time, it is necessary to ensure that the user's computer does not get stuck during upload : Intranet 100 megabyte network upload speed is 12MB/S Server memory footprint is low Support folder upload , Number of files in folder reached 1 More than ten thousand , And package ...

  3. ( turn )Java web The file path in the project

    File path is divided into absolute path and relative path , Jump to page in project . Profile read / write . File upload and download and many other places are related to the file path problem . A good article is reprinted here :http://blog.csdn.net/shendl/archive ...

  4. Thorough solution java WEB File path problem of the project (war package )

    stay j2EE In the project , We usually package and publish projects , Usually war package , As a separate unit , Can upload remotely , load , published , Can also achieve version number control , But it's not the same as what we use in the development process MyEclipse Self deployment is different , Let's make a specific explanation ...

  5. 【 turn 】Java Web The project gets the runtime path classpath

    Java Web The project gets the runtime path classpath Suppose the resource file is placed in maven engineering src/main/resources Resources folder , Source files are placed in src/main/java/ Next , that ja ...

  6. Use Maven structure Java Web Project time , About jsp Introduction in js、css File path problem .

    I'm a little free today , Build one yourself Java Web project , encounter jsp Introduction in js.css Incorrect file path , So I looked up a lot of information on the Internet , It doesn't solve the problem in the end , therefore , On stackoverflow Found a solution , this ...

  7. utilize eclipse New java web Project has no deployment descriptor web.xml What about the documents ?

    The original is translated from :http://blog.csdn.net/suyu_yuan/article/details/50947007 utilize eclipse New Java Web Project has no deployment descriptor web.xml file , ...

  8. java web Open the resource file in the project

    1 java web Multi module management is often used in projects . Some resource files have been added to a module . But not to start the project . Sometimes you need to read the contents of the resource file in the program , It doesn't work properly when it's packed and put in a container . You need to put all the resource files in the ...

  9. Linux(Centos) Installation of tomcat And deploy Java Web project

    1. preparation a. download tomcat linux My bag , Address :http://tomcat.apache.org/download-80.cgi, The version we downloaded is 8.0, The download method is shown in the figure :          b ...

  10. Intellij IDEA Java web Project structures,

    Java web Project structures, brief introduction In the last section java web The environment is being built , We configured the development java web The basic environment of the project , Now we're going to use Spring MVC+Spring+Hibernate To build a ...

Random recommendation

  1. stay Eclipse in , How to put a java The project becomes web project

    Often in eclipse Import web Project time , There is a problem that the project type cannot be changed , After importing, it is a java project . Solution steps :1. Enter project directory , You can see .project file , open .2. find <natures>... ...

  2. Unity3D Reduce IL2CPP Compile executable size

    The project starts to use IL2CPP compile , As a result, the number of executable files has increased dramatically . google Later, I found a great method of writing in foreign countries , The original post is here http://forum.unity3d.com/threads/suggestion-for- ...

  3. My first one python Crawler program

    The program is used to crawl the pictures on the embarrassing encyclopedia , The program has a timeout function , Have the ability of exception handling Now go directly to the source code : #-*-coding:utf-8-*- ''' Created on 2016 year 10 month 20 Japan @author: a ...

  4. 001- video video

    <!DOCTYPE HTML> <html> <body> <video width="320" height="240&quo ...

  5. HTTP seek

    client contact server after , to server Get questions Web News resources , abbreviation client to server Send a HTTP seek . A complete HTTP The request contains the following example : ① ② Several headers ( Request header ) ...

  6. c# ActiveMQ class

    using System;using System.Collections.Generic;using System.Text; using Apache.NMS;using Apache.NMS.A ...

  7. [ Physics and PDEs] The first 4 Chapter one 1 section introduction

    1.   This chapter discusses the situation that combustible fluid is accompanied by combustion in the process of flow . 2.   There are two kinds of combustion , One is deflagration (deflagration): The flame moves forward at a low speed , In this case, the fluid element is usually unburned gas . Mixture of burned gases ; One ...

  8. 2018 Published papers in :Convolutional Simplex Projection Network for Weakly Supervised Semantic Segmentation

    The purpose of taking notes is : Deliberately . Deliberately organize their ideas , Comprehensive comparison , In order to learn from . His shan zhishi , Can offend jade . <Convolutional Simplex Projection Network for Weakly Supe ...

  9. AEM An image conversion tool on

    Purpose : In different cases , The same picture , It needs to be different sizes / background / Dimensions show . Example : dam There's one down there 940 x 300 Pictures of the : http://localhost:4502/content/dam/geome ...

  10. MYSQL List of basic operations for modifying table structure

    View the field information of the table :desc Table name ; See all the information in the table :show create table Table name ; Add primary key constraint :alter table Table name add constraint Primary key ( Form like :PK_ Table name ) ...