I want to be able to have the JAR re-execute itself with JVM arguments determined at runtime, whatever the options may be. A bad example would be if I wanted the JAR to read some config files or something, determine what JVM arguments to use, and then re-execute itself with those arguments using ProcessBuilder or Runtime.exec(String) or something (bad example because the user might as well have ran a shell or batch script or something with the options specified).
Dumb deployer:
Dumb main:
I find it really bizarre that what I did earlier used to work.