I have a small application with couples of classes and a properties file where I keep my configuration items. I use
props = new Properties();
to load my properties and therefore I keep my properties file with my class files.
Now I need to distribute this application and the easiest way is to create a jar file. Now when I include my properties file in jar file, I just have one jar file which I can send to my users and it works very well but the problem is, if user want to change configuration values, which is in the properties file, then there is no easy way to do this as they have to extract, edit and re add properties file in the jar; or in other word they have to coome to me.
My question is, Do we usually package properties file with jar ? If not how can I keep my properties file out side jar and still class path load it ? Or is there is any other way to easily distribute my application with or without jar file where they can easily run the application and also have flexibility to change properties file.
My application does not involve any GUI.
Thanks in advance.