When JAVA_HOME isn't set, the init looks for jdk6 explicitly. Obviously for 2.0+ this can cause problems.