edited the script for easier matenance between java versions.
Removed license temperaraly because I think it was the wrong kind.