How to Correctly set the class path in a eclipses project ?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   upul_indrajith
Posted On:   Tuesday, May 22, 2007 05:51 AM


I am new to Eclipse ide. After we add a project we have to set the class path. Otherwise it shows errors. Is dare any correct (best practice) way to set the class path in Eclipse ? Or Is there any plug ins where we can use for set class path in eclipse ?

Normally what i m doing is add all the jar files and src folders in to the class path. but some times even thought the src folder is added the classes and packagers in side it can not be resolved. Y this happen ? Should we have to add the jar s in bin/output folder and dist folder as well ? o just src folders and lib are enough ?


thank you

Re: How to Correctly set the class path in a eclipses project ?

Posted By:   Amey_P  
Posted On:   Monday, May 28, 2007 05:23 AM

Goto Project Properties ---> Java Build path Or,
Right click the JAR file and click Build Path ---> Add to build path.

It's a general practice to keep all the jars in WEB-INF/lib or Output/lib directory, and not under source.

Re: How to Correctly set the class path in a eclipses project ?

Posted By:   Robert_Lybarger  
Posted On:   Tuesday, May 22, 2007 08:58 AM

Eclipse constructs its own "CLASSPATH" for compile/run operations based on the settings at this location: "Project - Properties - Java Build Path - Libraries". If you meant you were setting your own CLASSPATH variable on the system and then running eclipse, then that doesn't work that way for Eclipse.
About | Sitemap | Contact