Code example for URLClassLoader

Methods: loadClass

0
            path = tagName.replace('.', '/');
	    path = path.substring(0, path.lastIndexOf('/'));
        } else { 
            path = getServletPackageName().replace('.', '/');
	} 
 
        try { 
            // Append servlet or tag handler path to scratch dir 
            baseUrl = options.getScratchDir().toURL();
            String outUrlString = baseUrl.toString() + '/' + path;
            URL outUrl = new URL(outUrlString);
            outputDir = outUrl.getFile() + File.separator;
            makeOutputDir(); 
        } catch (Exception e) {
            throw new IllegalStateException("No output directory: " +
                                            e.getMessage());
        } 
    } 
     
    private static final boolean isPathSeparator(char c) {
       return (c == '/' || c == '\\');