Skip to content

Commit ff2c279

Browse files
Merge pull request #2351 from jasonrandrews/review
Final review of Java on Cobalt 100 Learning Path
2 parents 824258c + f46b6d2 commit ff2c279

File tree

1 file changed

+27
-4
lines changed
  • content/learning-paths/servers-and-cloud-computing/java-on-azure

1 file changed

+27
-4
lines changed

content/learning-paths/servers-and-cloud-computing/java-on-azure/deploy.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ java -version
3030
javac -version
3131
```
3232

33-
You should the JRE version printed:
33+
You see the version information printed:
3434

3535
```output
36+
aarch64
3637
openjdk version "21.0.8" 2025-07-15
3738
OpenJDK Runtime Environment (build 21.0.8+9-Ubuntu-0ubuntu124.04.1)
3839
OpenJDK 64-Bit Server VM (build 21.0.8+9-Ubuntu-0ubuntu124.04.1, mixed mode, sharing)
@@ -41,24 +42,46 @@ OpenJDK 64-Bit Server VM (build 21.0.8+9-Ubuntu-0ubuntu124.04.1, mixed mode, sha
4142
Check to ensure that the JDK is properly installed:
4243

4344
```console
44-
echo $JAVA_HOME
4545
which java
4646
which javac
4747
```
4848
The output should look similar to:
4949

5050
```output
51-
javac 21.0.8
51+
/usr/bin/java
52+
/usr/bin/javac
5253
```
5354

54-
Set the Java Environment Variables to point to the root directory of your JDK installation:
55+
Set the Java Environment Variables to point to the root directory of your JDK installation.
56+
57+
Use a text editor to edit the file `$HOME/.bashrc` and add the 2 environment variables.
5558

5659
```console
5760
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-arm64
5861
export PATH=$JAVA_HOME/bin:$PATH
62+
```
63+
Source the updated `$HOME/.bashrc` file.
64+
65+
```console
5966
source ~/.bashrc
6067
```
6168

69+
Confirm the new settings.
70+
71+
```console
72+
echo $JAVA_HOME
73+
which java
74+
which javac
75+
```
76+
77+
The output is:
78+
79+
```output
80+
/usr/lib/jvm/java-21-openjdk-arm64
81+
/usr/lib/jvm/java-21-openjdk-arm64/bin/java
82+
/usr/lib/jvm/java-21-openjdk-arm64/bin/javac
83+
```
84+
6285
{{% notice Note %}}
6386
Ubuntu Pro 24.04 LTS provides OpenJDK 21 by default. Ensure your OpenJDK for Arm64 is **11.0.9 or newer** if you must run Java 11; releases before 11.0.9 can suffer performance issues due to false‑sharing cache contention. See the Arm community blog: [Java performance on Neoverse N1](https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/java-performance-on-neoverse-n1). You can also consult the [Arm Ecosystem Dashboard](https://developer.arm.com/ecosystem-dashboard/) for package guidance on Arm Neoverse Linux systems.
6487
{{% /notice %}}

0 commit comments

Comments
 (0)