# How to upgrade the Java version You can upgrade or downgrade your Java service to a different major Java version by setting the [`run.base`](/java/how-to/build-pipeline#base-1) parameter in your `zerops.yaml`. When you [trigger a new pipeline](/java/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Java version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current Java version for your runtime. If you want to build your application with a different major Java version, change the [`build.base`](/java/how-to/build-pipeline#base) parameter in your `zerops.yaml`. The `build.base` is the required attribute.