switch to java installation with shell script