add check for java.home while installing jruby, fix #2778