How to place a file on classpath in Eclipse?

Cacheing picture Cacheing · Jul 3, 2012 · Viewed 203.7k times · Source

As this documentation says, "For example if you place this jndi.properties file on your classpath", but how can I place the .properties file on my classpath if I am using Eclipse?

Answer

greenkode picture greenkode · Jul 3, 2012

Just to add. If you right-click on an eclipse project and select Properties, select the Java Build Path link on the left. Then select the Source Tab. You'll see a list of all the java source folders. You can even add your own. By default the {project}/src folder is the classpath folder.