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"/>





  1. Helpful thanks!

Speak Your Mind


Please support the site
By clicking any of these buttons you help our site to get better