Skip to content


Subversion checkout URL

You can clone with
Download ZIP
HTML Clojure
Latest commit b8b619d Hudson @ [maven-release-plugin] prepare for next development iteration


Examine the Java classpath from Clojure programs.

Releases and Dependency Information

Latest stable release is 0.2.3

Leiningen dependency information:

[org.clojure/java.classpath "0.2.3"]

Maven dependency information:


Gradle dependency information:

compile "org.clojure:java.classpath:0.2.3"

Other versions:

Releases are published to the Maven Central Repository

Development SNAPSHOTs are published to the Sonatype Open-Source Repository


See the API Documentation


(require '[ :as cp])

;; (#<File /foo/test> #<File /foo/src> ...)

The classpath function returns a sequence of objects representing all JAR files and directories on the classpath. It defaults to using the classpath of Clojure's base ClassLoader.

classpath also takes a ClassLoader as an optional argument.

Alternatively, the system-classpath function returns a sequence of objects parsed from the java.class.path Java system property.

If you are using an environment which provides its own ClassLoader implementation, such as a Java application server, you can extend the protocol URLClasspath to support it. Refer to the source for details.

Developer Information

Copyright and License

Copyright (c) 2013 Rich Hickey, Stuart Sierra, and contributors. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( which can be found in the file epl.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.

Something went wrong with that request. Please try again.