At the moment I'm using bat file to launch my jar and set the java.system.class.loader. Is it possible to do this programmatically to get rid of the bat file?
You can't, because the system class loader is used before the first line of your program is executed.
You may use a different class loader for some classes, but you can't change the system class loader from your running program.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With