Used ensure_packages in java.pp