-
Notifications
You must be signed in to change notification settings - Fork 99
Cloud Foundry Java Buildpack
christian edited this page Mar 4, 2025
·
11 revisions
Starting from version v4.9 of the Cloud Foundry (CF) Java Buildpack, SapMachine can be used as a standard Java Runtime Environment. In order to use the SapMachine JRE, set the following environment variable for your Cloud Foundry application:
cf set-env <app_name> JBP_CONFIG_COMPONENTS '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
cf restage <app_name>
Alternatively, you can declare the environment variable in the application's manifest file:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
or even specifying a concrete version, using the version syntax:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: 21.+ } }'
For more detailed instructions pleases check out the CF documentation.