HAS_JAVA detect if JVM is available

Ref: https://www.mathworks.com/help/matlab/ref/usejava.html