Tuesday 26 April 2016

Java: Place a file in project class path

You can use any of following ways to place a project in class path.

Approach 1:
Place the file in the src/ directory of your project. This will copy it to the "classes" at build time.

Approach 2:

Right-click on an eclipse project and select Properties, select the Java Build Path link on the left. Then select the Source Tab. You can add the folder where your file present here.

No comments:

Post a Comment