Set JAVA_HOME properly

JAVA_HOME is used but not specified in configure.ac so really it's just
a blank string. It can be determined from JavaInfo and then used.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739912