OpenJDK 25 is now available for Java, Scala and Clojure apps

Change effective on 17 September 2025

Heroku’s support for Java, Scala and Clojure now includes support for OpenJDK version 25. To use this version of OpenJDK, create a system.properties file in your application with the following contents:

java.runtime.version=25

After your next deployment, Heroku will install and run your app with OpenJDK 25. For more information, see the article on Heroku Support for Java in the Dev Center. For more information on OpenJDK 25, see the official OpenJDK documentation.