exclude SystemConfig.properties in jar file while the system can still find the file
posted 11 years ago
I would like pack my jar file while placing my SystemConfig.properties file outside the jar. The reason is I want to change my System variables(which place in the SystemConfig.properties) time by time. So it will be too much work for me if I put the properties file within the jar. I will have to export it every time if I choose to do so. However, if I put my SystemConfig.properties file in a folder eternally, despite the program changes.
Unfortunately, the system can't find the properties file when I put it outside the jar even the folder contains both my jar and the SystemConfig.properties. I tried to include it in classpath and manifest file, but none of them gives me happy ending.
I would like to get help from you guys, so that I can get the happy ending, at least happy program, please give me a hand, thanks, myriad thanks