import java.net.URL; public class Main { public static void main(String[] argv) throws Exception { // Create a URL that refers to a jar file on the net URL url = new URL("jar:http://hostname/my.jar!/"); } }