Add option for JAVA_HOME for Oracle JDK and OpenJDK
Add environment setup