Java JarURLConnection create url jar url
import java.net.JarURLConnection; import java.net.MalformedURLException; import java.net.URL; public class Main { public static void main(String[] args) { String str = "jar:http://www.abc.com/myclasses.jar!/myfolder/Abc.class"; URL url;/*from w ww .jav a 2 s. com*/ try { url = new URL(str); JarURLConnection connection = (JarURLConnection) url.openConnection(); } catch (Exception e) { e.printStackTrace(); } } }