0

I have a Java client application that I am going to package as a stand-alone application using jpackage.

But the application has a Properties file which must be both read and written to by the application. My initial attempts to do this run in the IDE, but when I package the application it fails because the location of the properties file is actually located inside the packaged .jar.

Is there a canonical / "right" way to maintain a writable properties file with a jpackaged application?

Matthew McPeak
  • 17,185
  • 2
  • 25
  • 54
  • Package *default settings* in your application. Store a writable *copy* of them in a [known file location](https://stackoverflow.com/questions/35388882/find-place-for-dedicated-application-folder), typically in a directory that is a descendant of the user’s home directory. – VGR Mar 17 '22 at 22:10

0 Answers0