Change effective on 16 January 2019
Heroku’s support for Java, Scala, Clojure, JRuby, and Gradle now includes support for OpenJDK versions 8u201, 8u202, and 11.0.2. To use a specific version of JDK 8, create a
system.properties file in your application with contents like this:
To use JDK 11.0.2, create a
system.properties file in your application with the following contents:
After your next deployment, Heroku will install and run your app with the specified JDK version. For more information, see the article on Heroku Support for Java in the Dev Center. For more information on JDK 8u201, 8u202, and 11.0.2 see the official OpenJDK documentation.