Starting with Java 9, the default class loader is no longer an
instance of URLClassLoader, so classpath
returned an empty sequence.
The strategy of using URLClassLoader started with release 0.2.0 to
accommodate Java application containers (see CLASSPATH-1 and
CLASSPATH-2). After this change, application containers based on
URLClassLoader should still work as expected.
On Java 9 without an application container, it appears that the
java.class.path
system property is the only way to get the
classpath. While this is essentially a bugfix for Java 9
compatibility, it is a change in behavior, hence the version change
from 0.2 to 0.3.
Fix CLASSPATH-4: Use io/as-file instead of treating URL as file path
Fix CLASSPATH-3: Eliminate reflection
clojure.contrib.classpath
and clojure.contrib.jar
in legacy clojure-contribCan you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close