Fixed #2 - Set JAVA_HOME to JDK

Fixing #2 again. The last push used /usr/bin/javac which is not as
reliable as $(which javac).