added bash script and support perl script to easily change java version