Use 'JAVA_HOME' environment variable

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>