bytedeco/javacpp

java.net.MalformedURLException: Unknown protocol: jar

Aperta

#581 aperta il 16 giu 2022

 (4 commenti) (0 reazioni) (0 assegnatari)Java (620 fork)batch import
help wantedquestion

Metriche repository

Star
 (4279 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I've encountered a problem accessing classes with newer versions of java:

Uncaught Exception: java.lang.UnsatisfiedLinkError: java.net.MalformedURLException: Unknown protocol: jar java.lang.UnsatisfiedLinkError: java.net.MalformedURLException: Unknown protocol: jar at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1759) at org.bytedeco.javacpp.Loader.load(Loader.java:1345) at org.bytedeco.javacpp.Loader.load(Loader.java:1157) at org.bytedeco.javacpp.Loader.load(Loader.java:1133)

The interesting thing is that this only seems to happen with later versions of Java (15+). When I run the same code in Java11, i do not get this error?

Guida contributor