Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# inside .bash_login
for i in `ls /opt/jars/*.jar`
do
CLASSPATH=${CLASSPATH}:${i}
done
# you can see this works by inspecting your environment
jack@localhost ~/git/clojure-contrib (no branch) $ printenv | grep -i classpath
CLASSPATH=/Users/jack/Library/Java:/Users/jack/src/vimclojure-2.1.1/src/com/martiansoftware/nailgun:/opt/jars/clojure-contrib.jar:/opt/jars/clojure-sources.jar:/opt/jars/clojure.jar:/opt/jars/commons-codec-1.3.jar:/opt/jars/commons-fileupload-1.2.1.jar:/opt/jars/commons-io-1.4.jar:/opt/jars/compojure.jar:/opt/jars/grizzly-http-servlet-1.9.10.jar:/opt/jars/grizzly-http-webserver-1.9.10.jar:/opt/jars/jetty-6.1.15.jar:/opt/jars/jetty-util-6.1.15.jar:/opt/jars/servlet-api-2.5-20081211.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.