Java Jar file: use resource errors: URI is not hierarchical
You cannot do this File src = new File(resourceUrl.toURI()); //ERROR HERE it is not a file! When you run from the ide you don’t have any error, because you don’t run a jar file. In the IDE classes and resources are extracted on the file system. But you can open an InputStream in this way: … Read more