Editing eclipse classpath file

While creating a project in Eclipse, by default it creates a .classpath file in the project directory. That file will be usedfor storing file names and other dependent files needed in the classpath to compile and execute the project successfully. Normally this file will be updated automatically when ever you update the project libraries here :


Show Full Image

The following are the few sample values used in the classpath setting :

src - setting source folders path
lib - setting jar files path
output - setting path for generating class files from the source files.

The following is sample .classpath file

<?xml version="1.0" encoding="UTF-8"?><classpath>

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

<classpathentry kind="lib" path="lib/log4j.jar"/>

<classpathentry combineaccessrules="false" kind="src" path="/Project"/>

<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>

</classpath>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pin It on Pinterest

Share This

Share this post with your friends!

Share This

Share this post with your friends!