Add some error handling to the script and make it a bit fancier.
Ignore JRE directory