private URL extractActualUrl ( URL jarUrl ) throws MalformedURLException { String urlFile = jarUrl . getFile ( ) ; int separatorIndex = urlFile . indexOf ( "!/" ) ; if ( separatorIndex != - 1 ) { String jarFile = urlFile . substring ( 0 , separatorIndex ) ; try { return new URL ( jarFile ) ; } catch ( MalformedURLException var5 ) { if ( ! jarFile . startsWith ( "/" ) ) { jarFile = "/" + jarFile ; } return new URL ( "file:" + jarFile ) ; } } else { return jarUrl ; } }
Extracts parent Jar URL from original ClassPath entry URL .