Bash scripts amended further - JDK_HOME & JAVA_HOME

* launchUI.sh & launchHeadless.sh refactored
* JDK_HOME & JAVA_HOME applied to JarScan.sh as well