• Post Reply Bookmark Topic Watch Topic
  • New Topic

exclude SystemConfig.properties in jar file while the system can still find the file  RSS feed

YuenLian Wu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

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

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!