Skip to main content

Supported versions

You can select the major version. But the latest compatible minor version is applied automatically and can’t be overridden. Patch versions are applied periodically for bug fixes and the like. When you deploy your app, you always get the latest available patches.

OpenJDK versions:

These versions refer to the headless packages of OpenJDK. To save space and reduce potential vulnerabilities, they don’t contain GUI classes, which can’t be used on the server.

Specify the language

To use Java, specify java as your app’s type: For example:

Support build automation

Upsun supports the most common project management tools in the Java ecosystem, including:

Manage Maven versions

Java containers come with a version of Maven already installed. You may need to use a specific different version to manage your project. If the version you need differs from the version on your container, you can install the specific version that you need. Add something like the following to your app configuration:

Other JVM languages

It’s worth remembering that the JVM by its specification doesn’t read Java code, but bytecode. So within the JVM, it’s possible to run several languages. Upsun supports several of them, such as Kotlin, Groovy, and Scala, so long as that language works with any build automation that Upsun supports.
While the table above shows examples for Platform.sh rather than for Upsun, the same rules apply with only slight changes in configuration.

Accessing services

Last modified on March 11, 2026