1 19 20 package org.netbeans.api.debugger.jpda; 21 22 import java.io.File ; 23 import java.net.MalformedURLException ; 24 25 30 public class Utils { 31 32 35 public static String getURL(String path) { 36 File file = new File (path); 37 try { 38 return file.toURI().toURL().toString(); 39 } catch (MalformedURLException ex) { 40 ex.printStackTrace(); 41 return path; 42 } 43 } 44 } 45 | Popular Tags |