Friday, June 25, 2010

Bash one-liner to build classpath

I found this gem in clojure-contrib's clj-env-dir
EXT="$(find -H $CLOJURE_EXT -mindepth 1 -maxdepth 1 -print0 | tr \\0 \:)"
Invoke java now as
java -cp $EXT clojure.main

Thursday, June 24, 2010

Java 6 api docs in MacOSX

If you are using Firefox, you can access the built-in java 6 api docs using the following url

jar:file:///System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/docs.jar!/docs/api/index.html