fixing java install order