Install Java from packages