Skip to content

Commit 2a208a4

Browse files
committed
[GR-51350] Update graalvm17 command in OCI Cloud Shell and Cloud Editor guides.
PullRequest: graal/16648
2 parents bb3d850 + e485702 commit 2a208a4

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

docs/getting-started/graalvm-enterprise/oci/cloud-shell.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide shows you how to get started with Oracle GraalVM in Oracle Cloud Infr
99

1010
[OCI Cloud Shell](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cloudshellintro.htm) is a browser-based terminal accessible from the Oracle Cloud Console. It provides access to a Linux shell with a pre-authenticated OCI Command Line Interface (CLI), preinstalled developer tools, and comes with 5GB of storage.
1111

12-
Oracle GraalVM JDK 17 with Native Image is preinstalled in Cloud Shell, so you do not have to install and configure a development machine.
12+
Oracle GraalVM for JDK 17 is preinstalled in Cloud Shell, so you do not have to install and configure a development machine.
1313

1414
> Note: Oracle GraalVM license and support are included in the Oracle Cloud Infrastructure subscription at no additional cost.
1515
@@ -24,14 +24,14 @@ Cloud Shell has several preinstalled JDKs, including Oracle GraalVM JDK.
2424
```shell
2525
csruntimectl java list
2626
```
27-
The output lists the JDKs preinstalled in Cloud Shell: GraalVM for JDK 17, Oracle JDK 11, and Oracle JDK 8. The JDK marked with an asterisk is the current JDK.
27+
The output lists the JDKs preinstalled in Cloud Shell: Oracle GraalVM for JDK 17, Oracle JDK 11, and Oracle JDK 8. The JDK marked with an asterisk is the current JDK.
2828

2929
3. Select GraalVM for JDK 17 as the current JDK:
3030

3131
```shell
32-
csruntimectl java set graalvmeejdk-17
32+
csruntimectl java set graalvmjdk-17
3333
```
34-
You will see the confirmation message printed `The current managed java version is set to graalvmeejdk-17`.
34+
You will see the confirmation message printed `The current managed java version is set to graalvmjdk-17`.
3535

3636
4. Now confirm the values of the environment variables `PATH` and `JAVA_HOME`, and the version of `java`, the `native-image` generator:
3737

docs/getting-started/graalvm-enterprise/oci/code-editor.md

+16-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide shows you how to get started with Oracle GraalVM in Oracle Cloud Infr
99

1010
[OCI Code Editor](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/code_editor_intro.htm) provides a rich, in-console editing environment that enables you to edit code without having to switch between the Oracle Cloud Console and your local development environment. The Code Editor enables you to edit and deploy code for OCI services directly from the OCI Console.
1111

12-
Oracle GraalVM JDK 17 with Native Image is preinstalled in Cloud Shell, so you do not have to install and configure a development machine. Code Editor's integration with Cloud Shell gives you direct access to it.
12+
Oracle GraalVM for JDK 17 is preinstalled in Cloud Shell, so you do not have to install and configure a development machine. Code Editor's integration with Cloud Shell gives you direct access to it.
1313

1414
> Note: Oracle GraalVM license and support are included in the Oracle Cloud Infrastructure subscription at no additional cost.
1515
@@ -27,14 +27,14 @@ Oracle GraalVM JDK 17 with Native Image is preinstalled in Cloud Shell, so you d
2727
```shell
2828
csruntimectl java list
2929
```
30-
The output lists the JDKs preinstalled in Cloud Shell: GraalVM for JDK 17, Oracle JDK 11, and Oracle JDK 8. The JDK marked with an asterisk is the current JDK.
30+
The output lists the JDKs preinstalled in Cloud Shell: Oracle GraalVM for JDK 17, Oracle JDK 11, and Oracle JDK 8. The JDK marked with an asterisk is the current JDK.
3131

32-
2. Select GraalVM for JDK 17 as the current JDK:
32+
2. Select Oracle GraalVM for JDK 17 as the current JDK:
3333

3434
```shell
35-
csruntimectl java set graalvmeejdk-17
35+
csruntimectl java set graalvmjdk-17
3636
```
37-
You will see the confirmation message printed `The current managed java version is set to graalvmeejdk-17`.
37+
You will see the confirmation message printed `The current managed java version is set to graalvmjdk-17`.
3838

3939
3. Now confirm the values of the environment variables `PATH` and `JAVA_HOME`, and the version of `java`, the `native-image` generator:
4040
```shell
@@ -86,7 +86,7 @@ Oracle GraalVM JDK 17 with Native Image is preinstalled in Cloud Shell, so you d
8686
3. Run the JAR:
8787

8888
```shell
89-
java -jar target/my-app-1.0-SNAPSHOT.jar
89+
java -jar target/my-app-1.0-SNAPSHOT.jar
9090
```
9191
It prints out “Hello World!”.
9292

@@ -96,14 +96,20 @@ This Java application incorporates the [Maven plugin for GraalVM Native Image](h
9696

9797
### Quick Build Mode Enabled
9898

99-
1. Build a native executable using the `native` Maven profile. The quick build mode is enabled for this run: notice the `<buildArg>-Ob</buildArg>` option in the plugin's configuration in _pom.xml_.
99+
1. To enable the quick build mode, uncomment this line in _pom.xml_, as follows:
100+
101+
```xml
102+
<quickBuild>true</quickBuild>
103+
```
104+
105+
2. Build a native executable using the `native` Maven profile:
100106

101107
```shell
102108
mvn clean -Pnative -DskipTests package
103109
```
104110
This will generate a native executable for Linux in the _target_ directory, named _my-app_.
105111

106-
2. Run the app native executable in the background:
112+
3. Run the app native executable in the background:
107113

108114
```shell
109115
./target/my-app
@@ -114,8 +120,9 @@ This Java application incorporates the [Maven plugin for GraalVM Native Image](h
114120
1. To disable the quick build mode, comment out this line in _pom.xml_, as follows:
115121

116122
```xml
117-
<!-- <buildArg>-Ob</buildArg> -->
123+
<!-- <quickBuild>true</quickBuild> -->
118124
```
125+
119126
2. Build a native executable again:
120127

121128
```shell

0 commit comments

Comments
 (0)