Added test -n "$java" because wc -l returns 1 even if $java is empty.
Added test -n "$java" because wc -l returns 1 even if $java is empty.

Ericbla/check_jstat,proptiger-com/check_jstat,zyeming/check_jstat