My app (jar file) uses two configuration files. When excuting the jar file locally in a dir where both the conf. files reside - no problem. App runs fine. But...
When I upload to my website, place the jar along with the two conf files in same dir, launch app (using JWS) - the conf files aren't read. I think I know why: JWS downloads the jar to some local dir and executes, which leaves the two conf files still hanging on the web site. Unreachable.
Does anybody have any input as to how I can solve this?
You should also provide some default values for the configuration parameters. If you want to get fancy, you can provide a menu so that the user can edit these parameters via your program. In this case, you will probably just create the config files if they don't exist on the machine.