I have a Swing application I want to package as a jar file. I also have a properties file that I store user set properties in.
Can I store this file inside the jar file and will the application automatically write into the jar file?
I want to avoid having two files, the jar and the properties external of it.
You can surely bundle properties file inside of jar
, But one problem with that is, it will become kind of read-only
. So you will not be able to write anything into it.