Skip to content

Commit 1dbf963

Browse files
authored
Merge pull request #287 from skateball/patch-1
Revise SapMachine version support in documentation
2 parents 2dc219f + c0fe922 commit 1dbf963

4 files changed

Lines changed: 52 additions & 50 deletions

File tree

docs/30-development/buildpacks-5e7fc02.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can choose to deploy applications by using the following Java buildpacks:
66

77
- [SAP Java Buildpack 1](sap-java-buildpack-1-ad3e8df.md) – an SAP-managed buildpack that supports Java 8, 11, 17, TomEE 7 and Tomcat 9
88

9-
- [SAP Java Buildpack 2](sap-java-buildpack-2-1cf206b.md) – an SAP-managed buildpack that supports Java 17, 21, TomEE 10 and Tomcat 10
9+
- [SAP Java Buildpack 2](sap-java-buildpack-2-1cf206b.md) – an SAP-managed buildpack that supports Java 17, 21, 25, TomEE 10 and Tomcat 10
1010

1111
- [Community Java Buildpack](community-java-buildpack-4e2f2b5.md) – an open-source product maintained by the [java-buildpack](https://github.com/cloudfoundry/java-buildpack) community
1212

docs/30-development/configure-a-java-application-for-logs-and-traces-5551c5e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Configure the collection of log and trace messages generated by a Java applicati
1616

1717
- For **SAP Java Buildpack 1**: You use SAP JVM 8 or SapMachine 11 or 17, and your <JAVA\_HOME\> environment variable points to this location.
1818

19-
- For **SAP Java Buildpack 2**: You use SapMachine 17 or 21, and your <JAVA\_HOME\> environment variable points to this location.
19+
- For **SAP Java Buildpack 2**: You use SapMachine 17, 21 or 25, and your <JAVA\_HOME\> environment variable points to this location.
2020

2121
- You do **not** have any SLF4J and logback JAR files in the application.
2222

docs/30-development/sap-java-buildpack-2-1cf206b.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
SAP Java Buildpack 2 is a Cloud Foundry buildpack for running SapMachine-based applications.
66

7-
This buildpack supports Java 17 and 21, as well as the following runtimes:
7+
This buildpack supports Java 17, 21 and 25, as well as the following runtimes:
88

99
- [TomEE 10](tomee-10-66e808e.md)
1010

@@ -202,6 +202,7 @@ SAP Java Buildpack 2 \(`sap_java_buildpack_jakarta`\) supports the following Jav
202202
203203
- Java **17** – default version. You can obtain it by using SapMachine 17 \(*it provides a JRE with Java 17*\)
204204
- Java **21** – you can obtain it by using SapMachine 21 \(*it provides a JRE with Java 21*\)
205+
- Java **25** – you can obtain it by using SapMachine 25 \(*it provides a JRE with Java 25*\)
205206
206207
To learn how to configure your application to use SapMachine JRE and JDK, see: [SapMachine](sapmachine-785d6b3.md)
207208

docs/30-development/sapmachine-785d6b3.md

Lines changed: 48 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# SapMachine
44

5-
SapMachine is an alternative to SAP JVM, and provides a Java Runtime Environment \(JRE\) with Java 11, 17, and 21.
5+
SapMachine provides a Java Runtime Environment \(JRE\) with Java 17, 21, and 25.
66

77

88

@@ -19,13 +19,6 @@ SapMachine works with the following application containers:
1919
- [Java Main](java-main-8a1786a.md)
2020

2121

22-
> ### Caution:
23-
> **Only relevant to SAP Java Buildpack 1:**
24-
>
25-
> Bear in mind that TomEE 7 supports only Java 7 and 8. Thus, even if your TomEE 7 application runs successfully with SapMachine JRE 17, at some point it might crash. Also, TomEE 7 has already [reached end of life](https://tomee.apache.org/tomee-7.1-eol.html). See: [Discontinued TomEE versions](https://tomee.apache.org/download-discontinued.html)
26-
27-
28-
2922
<a name="loio785d6b390b834bee818e242160f87df5__section_jre"/>
3023

3124
## Activation Using JRE
@@ -42,12 +35,11 @@ applications:
4235
...
4336
```
4437

45-
Without specifying a particular JRE version, your application will use the following default offline JRE, bundled within the buildpack:
46-
47-
- For SAP Java Buildpack 1 – SapMachine JRE 11
38+
Without specifying a particular JRE version, your application will currently use the following default offline JRE, bundled within the buildpack:
4839

4940
- For SAP Java Buildpack 2 – SapMachine JRE 17
5041

42+
NOTE: The default major version of the SapMachine JRE will be raised from 17 to either 21 or 25. This only matters when the major version isn’t explicitly specified.
5143

5244
To specify a particular JRE version, use environment variable JBP\_CONFIG\_SAP\_MACHINE\_JRE.
5345

@@ -57,9 +49,12 @@ If you set this parameter to *false*, the buildpack will attempt to download Sap
5749

5850

5951

60-
### SapMachine 11
52+
### SapMachine 17
6153

62-
To stay secure, use the latest stable version of SapMachine JRE 11, which is available in the major version. Set the JBP\_CONFIG\_SAP\_MACHINE\_JRE variable like this:
54+
> ### Tip:
55+
> SAP Java Buildpack 2 provide a customized SapMachine JRE 17 that contains a [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module.
56+
57+
To stay secure, use the latest stable version, which is available in the major version of SapMachine JRE 17. Set the JBP\_CONFIG\_SAP\_MACHINE\_JRE variable like this:
6358

6459
```
6560
---
@@ -68,10 +63,10 @@ applications:
6863
...
6964
env:
7065
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
71-
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 11.+ }'
66+
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 17.+ }'
7267
```
7368

74-
In some cases, it can be helpful to pin a particular published version of SapMachine JRE 11. To make the buildpack download this JRE version \(for example, 11.0.28\), specify it the following way:
69+
In some cases, it can be helpful to pin a particular published version of SapMachine JRE 17. To make the buildpack download this JRE version \(for example, 17.0.17\), specify it the following way:
7570

7671
```
7772
---
@@ -80,20 +75,20 @@ applications:
8075
...
8176
env:
8277
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
83-
JBP_CONFIG_SAP_MACHINE_JRE: '{use_offline_repository: false, version: 11.0.28 }'
78+
JBP_CONFIG_SAP_MACHINE_JRE: '{use_offline_repository: false, version: 17.0.17 }'
8479
...
8580
```
8681

8782
**NOTE:** To stay secure, you need to update this version string on your own. For this reason, SAP does **not** recommend this approach.
8883

8984

9085

91-
### SapMachine 17
86+
### SapMachine 21
9287

9388
> ### Tip:
94-
> SAP Java Buildpack 1 and 2 provide a customized SapMachine JRE 17 that contains a [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module.
89+
> SAP Java Buildpack 2 provides a customized SapMachine JRE 21 that contains a [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module.
9590
96-
To stay secure, use the latest stable version, which is available in the major version of SapMachine JRE 17. Set the JBP\_CONFIG\_SAP\_MACHINE\_JRE variable like this:
91+
To stay secure, use the latest stable version, which is available in the major version of SapMachine JRE 21. Set the JBP\_CONFIG\_SAP\_MACHINE\_JRE variable like this:
9792

9893
```
9994
---
@@ -102,10 +97,10 @@ applications:
10297
...
10398
env:
10499
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
105-
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 17.+ }'
100+
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 21.+ }'
106101
```
107102

108-
In some cases, it can be helpful to pin a particular published version of SapMachine JRE 17. To make the buildpack download this JRE version \(for example, 17.0.16\), specify it the following way:
103+
In some cases, it can be helpful to pin a particular published version of SapMachine JRE 21. To make the buildpack download this JRE version \(for example, 21.0.9\), specify it the following way:
109104

110105
```
111106
---
@@ -114,20 +109,20 @@ applications:
114109
...
115110
env:
116111
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
117-
JBP_CONFIG_SAP_MACHINE_JRE: '{use_offline_repository: false, version: 17.0.16 }'
112+
JBP_CONFIG_SAP_MACHINE_JRE: '{use_offline_repository: false, version: 21.0.9 }'
118113
...
119114
```
120115

121116
**NOTE:** To stay secure, you need to update this version string on your own. For this reason, SAP does **not** recommend this approach.
122117

123118

124119

125-
### SapMachine 21
120+
### SapMachine 25
126121

127122
> ### Tip:
128-
> SAP Java Buildpack 2 provides a customized SapMachine JRE 21 that contains a [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module.
123+
> SAP Java Buildpack 2 provides a customized SapMachine JRE 25 that contains a [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module.
129124
130-
To stay secure, use the latest stable version, which is available in the major version of SapMachine JRE 21. Set the JBP\_CONFIG\_SAP\_MACHINE\_JRE variable like this:
125+
To stay secure, use the latest stable version, which is available in the major version of SapMachine JRE 25. Set the JBP\_CONFIG\_SAP\_MACHINE\_JRE variable like this:
131126

132127
```
133128
---
@@ -136,10 +131,10 @@ applications:
136131
...
137132
env:
138133
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
139-
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 21.+ }'
134+
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 25.+ }'
140135
```
141136

142-
In some cases, it can be helpful to pin a particular published version of SapMachine JRE 21. To make the buildpack download this JRE version \(for example, 21.0.8\), specify it the following way:
137+
In some cases, it can be helpful to pin a particular published version of SapMachine JRE 25. To make the buildpack download this JRE version \(for example, 25.0.1\), specify it the following way:
143138

144139
```
145140
---
@@ -148,7 +143,7 @@ applications:
148143
...
149144
env:
150145
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
151-
JBP_CONFIG_SAP_MACHINE_JRE: '{use_offline_repository: false, version: 21.0.8 }'
146+
JBP_CONFIG_SAP_MACHINE_JRE: '{use_offline_repository: false, version: 25.0.1 }'
152147
...
153148
```
154149

@@ -173,17 +168,17 @@ applications:
173168
```
174169

175170
> ### Note:
176-
> SapMachine JDK is **not bundled** within the buildpack. Therefore, if you want to use SapMachine JDK 11, 17 or 21, you have to download it from the [GitHub project](https://sap.github.io/SapMachine/) as an online component.
171+
> SapMachine JDK is **not bundled** within the buildpack. Therefore, if you want to use SapMachine JDK 17, 21 or 25, you have to download it from the [GitHub project](https://sap.github.io/SapMachine/) as an online component.
177172
>
178-
> However, you can use the [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module, which is **provided** by the buildpack as part of the customized SapMachine JRE, v. 17 and 21. To learn more, see section [Activation Using JRE](sapmachine-785d6b3.md#loio785d6b390b834bee818e242160f87df5__section_jre).
173+
> However, you can use the [jdk.compiler](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.compiler/module-summary.html) module, which is **provided** by the buildpack as part of the customized SapMachine JRE, v. 17, 21, and 25. To learn more, see section [Activation Using JRE](sapmachine-785d6b3.md#loio785d6b390b834bee818e242160f87df5__section_jre).
179174
180-
To specify an online JDK version \(11, 17, or 21\), use environment variable JBP\_CONFIG\_SAP\_MACHINE\_JDK.
175+
To specify an online JDK version \(17, 21, or 25\), use environment variable JBP\_CONFIG\_SAP\_MACHINE\_JDK.
181176

182177

183178

184-
### SapMachine 11
179+
### SapMachine 17
185180

186-
To stay secure, use the latest stable version, which is available in the major version of SapMachine JDK 11. Set the JBP\_CONFIG\_SAP\_MACHINE\_JDK variable like this:
181+
To stay secure, use the latest stable version, which is available in the major version of SapMachine JDK 17. Set the JBP\_CONFIG\_SAP\_MACHINE\_JDK variable like this:
187182

188183
```
189184
---
@@ -192,10 +187,10 @@ applications:
192187
...
193188
env:
194189
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
195-
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 11.+ }'
190+
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 17.+ }'
196191
```
197192

198-
In some cases, it can be helpful to pin a particular published version of SapMachine JDK 11. To make the buildpack download this JDK version \(for example, 11.0.28\), specify it the following way:
193+
In some cases, it can be helpful to pin a particular published version of SapMachine JDK 17. To make the buildpack download this JDK version \(for example, 17.0.16\), specify it the following way:
199194

200195
```
201196
---
@@ -204,17 +199,17 @@ applications:
204199
...
205200
env:
206201
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
207-
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 11.0.28 }'
202+
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 17.0.17 }'
208203
...
209204
```
210205

211206
**NOTE:** To stay secure, you need to update this version string on your own. For this reason, SAP does **not** recommend this approach.
212207

213208

214209

215-
### SapMachine 17
210+
### SapMachine 21
216211

217-
To stay secure, use the latest stable version, which is available in the major version of SapMachine JDK 17. Set the JBP\_CONFIG\_SAP\_MACHINE\_JDK variable like this:
212+
To stay secure, use the latest stable version, which is available in the major version of SapMachine JDK 21. Set the JBP\_CONFIG\_SAP\_MACHINE\_JDK variable like this:
218213

219214
```
220215
---
@@ -223,10 +218,10 @@ applications:
223218
...
224219
env:
225220
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
226-
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 17.+ }'
221+
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 21.+ }'
227222
```
228223

229-
In some cases, it can be helpful to pin a particular published version of SapMachine JDK 17. To make the buildpack download this JDK version \(for example, 17.0.16\), specify it the following way:
224+
In some cases, it can be helpful to pin a particular published version of SapMachine JDK 21. To make the buildpack download this JDK version \(for example, 21.0.9\), specify it the following way:
230225

231226
```
232227
---
@@ -235,17 +230,17 @@ applications:
235230
...
236231
env:
237232
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
238-
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 17.0.16 }'
233+
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 21.0.9 }'
239234
...
240235
```
241236

242237
**NOTE:** To stay secure, you need to update this version string on your own. For this reason, SAP does **not** recommend this approach.
243238

244239

245240

246-
### SapMachine 21
241+
### SapMachine 25
247242

248-
To stay secure, use the latest stable version, which is available in the major version of SapMachine JDK 21. Set the JBP\_CONFIG\_SAP\_MACHINE\_JDK variable like this:
243+
To stay secure, use the latest stable version, which is available in the major version of SapMachine JDK 25. Set the JBP\_CONFIG\_SAP\_MACHINE\_JDK variable like this:
249244

250245
```
251246
---
@@ -254,10 +249,10 @@ applications:
254249
...
255250
env:
256251
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
257-
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 21.+ }'
252+
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 25.+ }'
258253
```
259254

260-
In some cases, it can be helpful to pin a particular published version of SapMachine JDK 21. To make the buildpack download this JDK version \(for example, 21.0.8\), specify it the following way:
255+
In some cases, it can be helpful to pin a particular published version of SapMachine JDK 25. To make the buildpack download this JDK version \(for example, 25.0.1\), specify it the following way:
261256

262257
```
263258
---
@@ -266,16 +261,22 @@ applications:
266261
...
267262
env:
268263
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
269-
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 21.0.8 }'
264+
JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 25.0.1 }'
270265
...
271266
```
272267

273268
**NOTE:** To stay secure, you need to update this version string on your own. For this reason, SAP does **not** recommend this approach.
274269

270+
275271
**Related Information**
276272

273+
[https://sapmachine.io/](https://sapmachine.io/ "The SapMachine Website with downloads and documentation.")
274+
275+
[Java Main](java-main-8a1786a.md "Find out how you can create a Java application that starts its own runtime. This allows the usage of frameworks and Java runtimes, such as Spring Boot, Jetty, Undertow, or Netty.")
276+
277+
[SAP Java Buildpack 2](sap-java-buildpack-2-1cf206b.md "Find information about SAP Java Buildpack 2 which is a Cloud Foundry buildpack for running SapMachine-based applications.")
277278

278-
[https://sap.github.io/SapMachine/](https://sap.github.io/SapMachine/)
279+
[Debug an Application Running on SapMachine](debug-an-application-running-on-sapmachine-f7fa9f3.md "Find out possibilties how to debug a Java web application running on a Cloud Foundry container that uses SapMachine.")
279280

280281
[Runtimes and Containers](runtimes-and-containers-83d2416.md "Find out which application runtimes and containers you can use, depending on the Java buildpack your application is using.")
281282

0 commit comments

Comments
 (0)