added java pkg as requirement to be installed FIRST otherwise it gets installed last -_- YAAAYYYYY