Header javaperspective.com
JavaPerspective.com  >   Intermediate Tutorials  >   1. The Eclipse IDE  >   1.3. Tips about Eclipse  >   1.3.8. How to set the classpath in Eclipse

1.3.8. How to set the classpath in Eclipse
Last updated: 25 January 2013.

To set the classpath in Eclipse, right-click the project in the package explorer and select Build Path -> Configure Build Path... as shown below:

picture showing the eclipse IDE 48



The following window pops up:


picture showing the eclipse IDE 49



Usually, you add external JAR files to the classpath by clicking the button Add External JARs.... External JARs are JAR files that are outside the project's directory tree. If you want to select JAR files located in the project's directory tree, then click Add JARs...

After selecting the JAR files, click OK. The project is automatically rebuilt and you can use the classes contained in the JAR files you just added to the classpath.


You are here :  JavaPerspective.com  >   Intermediate Tutorials  >   1. The Eclipse IDE  >   1.3. Tips about Eclipse  >   1.3.8. How to set the classpath in Eclipse
Next tutorial :  JavaPerspective.com  >   Intermediate Tutorials  >   1. The Eclipse IDE  >   1.3. Tips about Eclipse  >   1.3.9. Miscellaneous tips about Eclipse

Copyright © 2013. JavaPerspective.com. All rights reserved.  ( Terms | Contact | About ) 
Java is a trademark of Oracle Corporation
Image 1 Image 2 Image 3 Image 4 Image 5 Image 6 Image 7