You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/getting-started/graalvm-enterprise/oci/cloud-shell.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This guide shows you how to get started with Oracle GraalVM in Oracle Cloud Infr
9
9
10
10
[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.
11
11
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.
13
13
14
14
> Note: Oracle GraalVM license and support are included in the Oracle Cloud Infrastructure subscription at no additional cost.
15
15
@@ -24,14 +24,14 @@ Cloud Shell has several preinstalled JDKs, including Oracle GraalVM JDK.
24
24
```shell
25
25
csruntimectl java list
26
26
```
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.
28
28
29
29
3. Select GraalVM for JDK 17 as the current JDK:
30
30
31
31
```shell
32
-
csruntimectl java setgraalvmeejdk-17
32
+
csruntimectl java setgraalvmjdk-17
33
33
```
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`.
35
35
36
36
4. Now confirm the values of the environment variables `PATH` and `JAVA_HOME`, and the version of `java`, the `native-image` generator:
Copy file name to clipboardexpand all lines: docs/getting-started/graalvm-enterprise/oci/code-editor.md
+16-9
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This guide shows you how to get started with Oracle GraalVM in Oracle Cloud Infr
9
9
10
10
[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.
11
11
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.
13
13
14
14
> Note: Oracle GraalVM license and support are included in the Oracle Cloud Infrastructure subscription at no additional cost.
15
15
@@ -27,14 +27,14 @@ Oracle GraalVM JDK 17 with Native Image is preinstalled in Cloud Shell, so you d
27
27
```shell
28
28
csruntimectl java list
29
29
```
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.
31
31
32
-
2. Select GraalVM for JDK 17 as the current JDK:
32
+
2. Select Oracle GraalVM for JDK 17 as the current JDK:
33
33
34
34
```shell
35
-
csruntimectl java setgraalvmeejdk-17
35
+
csruntimectl java setgraalvmjdk-17
36
36
```
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`.
38
38
39
39
3. Now confirm the values of the environment variables `PATH` and `JAVA_HOME`, and the version of `java`, the `native-image` generator:
40
40
```shell
@@ -86,7 +86,7 @@ Oracle GraalVM JDK 17 with Native Image is preinstalled in Cloud Shell, so you d
86
86
3. Run the JAR:
87
87
88
88
```shell
89
-
java -jar target/my-app-1.0-SNAPSHOT.jar
89
+
java -jar target/my-app-1.0-SNAPSHOT.jar
90
90
```
91
91
It prints out “Hello World!”.
92
92
@@ -96,14 +96,20 @@ This Java application incorporates the [Maven plugin for GraalVM Native Image](h
96
96
97
97
### Quick Build Mode Enabled
98
98
99
-
1. Build a native executable using the `native` Maven profile. The quick build mode is enabled forthis run: notice the `<buildArg>-Ob</buildArg>` optionin 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:
100
106
101
107
```shell
102
108
mvn clean -Pnative -DskipTests package
103
109
```
104
110
This will generate a native executable forLinuxin the _target_ directory, named _my-app_.
105
111
106
-
2. Run the app native executable in the background:
112
+
3. Run the app native executable in the background:
107
113
108
114
```shell
109
115
./target/my-app
@@ -114,8 +120,9 @@ This Java application incorporates the [Maven plugin for GraalVM Native Image](h
114
120
1. To disable the quick build mode, comment out this line in _pom.xml_, as follows:
0 commit comments