The System.setProperty method does not work inside the packaged jar, so switch to URL.setURLStreamHandlerFactory to register the protocol