I have something like this:
public static final String path; static { path = loadProperties(\"config.conf\").getProperty(\"path\"); } public static void mai
You can start your application using a custom class loader, this will allow you to load and unload your static variables.
However, basically its a very bad design to need to do this. I like making fields final, but you shouldn't make them final if you want to change them.