Added code to apply a specified license file and some additiona Java install checks