How to build java 21 with docker buildpack

0
Hi I use mendix docker buildpack I want build java 21 with docker buildpack, but message says Java 21 doesn't support it Only Java 11 is build Is there a way to build java 21 with docker buildpack? For example, modifying Dockerfile ... Thanks.
asked
1 answers
1

Hi,

 

Mendix Docker Buildpack relies on Mendix CF Buildpack script.

According to the Readme on CF repository, you can enable option to use Java 21 by passing the JAVA_VERSION environment variable during docker build

 

For example

ENV JAVA_VERSION=21

 

https://github.com/mendix/cf-mendix-buildpack?tab=readme-ov-file#java-version

 

However, you may need to recheck if your mendix version already support Java 21 or not.

 

Hope this help!

 

answered