I have something like this:
public static final String path;
static {
path = loadProperties(\"config.conf\").getProperty(\"path\");
}
public static void mai
If your goal is simply to reload some configuration files, why not implement a file change monitor?
Here's a good tutorial on this subject:
http://download.oracle.com/javase/tutorial/essential/io/notification.html
I think what you're proposing (restarting your application automatically) would be a little more cumbersome than just watching for file updates.