Capture java_home errors when compiling via ant
Fix #14: Calling wrong function.