I have a jar file which users run my application from. When I do a new release I replace the jar with the new jar (same file name)
The problem is, users that still have the application running, cannot safely exit, i assume because the jar has been replaced and it cannot find the old jar or the class/method is not loaded in the JVM.
Is there a way to always have the exit class/method always loaded in the JVM (I think this might allow it to close safely)
Or would I be better to use a different release technique than just replacing the jar?