When it comes to the ops... It is always a struggle...
Eclipse ruined us ;-)
Set class to a folder-
Eclipse ruined us ;-)
Set class to a folder-
Right click on your project->
If you put the properties file in the root level of the project (that's where the project folder is created), then it should be automatically included in the class path.
You should know that a CLASSPATH never includes specific files. It generally includes folders, jars, etc.
Run/Debug
Settings->Edit the launch configuration you are using->Switch to
Classpath tab->Right Click User Entries->Add the Folder (or
External Folder) containing your properties file->Click Apply
. I am assuming you are referencing to a console application here.If you put the properties file in the root level of the project (that's where the project folder is created), then it should be automatically included in the class path.
You should know that a CLASSPATH never includes specific files. It generally includes folders, jars, etc.