unittest should prefer JAVA_HOME when executing from cmdline When running with Java9+ no need to switch from jre to jdk directory (jep220)