• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

Transistor
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic