Remove Java from dependencies.