add $JAVA_HOME/bin to path + support https