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
[GR-60094] Move java-hello-world-maven to clouds/native-oci-cloud-shell. (#333)
* Move java-hello-world-maven to clouds/native-oci-cloud-shell
* Text correction in compiler/java-stream-benchmark/README.md
* Minor update
* Minor update
* Minor update
* Minor update
* Minor update
---------
Co-authored-by: Sachin Pikle <sachin.pikle@oracle.com>
Copy file name to clipboardExpand all lines: clouds/native-oci-cloud-shell/README-Cloud-Shell.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Oracle GraalVM is available for use on Oracle Cloud Infrastructure (OCI) at no a
10
10
11
11
## What is Cloud Shell?
12
12
13
-
[Cloud Shell](https://www.oracle.com/devops/cloud-shell/) is a free-to-use browser-based terminal accessible from the Oracle Cloud Console. It provides access to a Linux shell with preinstalled developer tools and a preauthenticated OCI CLI. You can use the shell to interact with OCI resources, follow labs and tutorials, and quickly run utility commands.
13
+
[Cloud Shell](https://www.oracle.com/devops/cloud-shell/) is a free-to-use browser-based terminal accessible from the Oracle Cloud Console. It provides access to a Linux shell with preinstalled developer tools and a pre-authenticated OCI CLI. You can use the shell to interact with OCI resources, follow labs and tutorials, and quickly run utility commands.
14
14
15
15
Oracle GraalVM for JDK 17 (with Native Image) is preinstalled in Cloud Shell, so you don’t have to install and configure a development machine to get started.
16
16
@@ -46,39 +46,37 @@ Oracle GraalVM for JDK 17 (with Native Image) is preinstalled in Cloud Shell, so
46
46
The current managed java version is set to graalvmjdk-17.
47
47
```
48
48
49
-
## Step 3: [OPTIONAL] Confirm software version and environment variables
50
-
51
-
This step is optional - [Check software version and environment variables](../_common/README-check-version-env-vars.md)
52
-
53
-
54
-
## Step 4: Set up your project, build and run as a JAR
49
+
## Step 3: Set up your project, build and run as a JAR
2. [OPTIONAL] Confirm software version and environment variables.
70
+
71
+
[Check software version and environment variables](../../_common/README-check-version-env-vars.md)
72
+
73
+
3. Build a JAR file for the example app.
76
74
77
75
```shell
78
-
mvn clean package
76
+
./mvnw clean package
79
77
```
80
78
81
-
3. Run the JAR using:
79
+
4. Run the JAR:
82
80
83
81
```shell
84
82
java -jar target/my-app-1.0-SNAPSHOT.jar
@@ -90,7 +88,7 @@ This step is optional - [Check software version and environment variables](../_c
90
88
Hello World!
91
89
```
92
90
93
-
## Step 5: Build and run a native executable
91
+
## Step 4: Build and run a native executable
94
92
95
93
Use GraalVM Native Image to produce a native executable.
96
94
@@ -107,7 +105,7 @@ You will notice the `Quick Build` mode reduces the time required to generate a n
107
105
2. Use the Native Image maven plugin to create a native executable:
108
106
109
107
```shell
110
-
mvn clean -Pnative -DskipTests package
108
+
./mvnw clean -Pnative -DskipTests package
111
109
```
112
110
113
111
3. Run the native executable using:
@@ -134,7 +132,7 @@ You will notice the `Quick Build` mode reduces the time required to generate a n
134
132
2. Use the Native Image maven plugin to create a native executable:
135
133
136
134
```shell
137
-
mvn clean -Pnative -DskipTests package
135
+
./mvnw clean -Pnative -DskipTests package
138
136
```
139
137
140
138
3. Run the native executable using:
@@ -148,3 +146,5 @@ You will notice the `Quick Build` mode reduces the time required to generate a n
148
146
```text
149
147
Hello World!
150
148
```
149
+
150
+
Learn how to start using Oracle GraalVM with other OCI services at [docs.oracle.com](https://docs.oracle.com/en/graalvm/jdk/23/docs/getting-started/oci/).
0 commit comments