Add support for setting JAVA_HOME.

Resolves #5, the generated source file now also sets JAVA_HOME.