set JAVA_HOME for both platform