class AntennaUtils {

    public static Path getJarPath(URL url) throws URISyntaxException, MalformedURLException {
        if("jar".equals(url.getProtocol())) {
            String file = url.getFile();
            if(file.contains("!")){
                file = file.split("!",2)[0];
            }
            url = new URL(file);
        }
        Path jarPath = Paths.get(url.toURI());
        return getJarPath(jarPath);
    }

    private  AntennaUtils();

}