Reputation: 61
I have a properties file in the resources folder in my project. I have created a JAR file by excluding this properties file, so that any changes made to the properties file will reflect in my JAR file. Now I want to include this properties file path in the class path entry of my manifest file. How can I do this?
Upvotes: 2
Views: 8290
Reputation: 28951
You should put the file in a folder and refer it from the manifest. So, I have the manifest entry of my.jar:
Class-Path: prop/
Then I have a folder "prop" near the my.jar and .properties file in in. Seems it works.
Upvotes: 3