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: content/install-guides/java.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,39 +22,39 @@ layout: installtoolsall
22
22
23
23
Java is a high-level, object-oriented programming language first released by Sun Microsystems in 1995.
24
24
25
-
It is designed to have as few implementation dependencies as possible, making it a versatile and widely-used language.
25
+
Its aim is to have as few implementation dependencies as possible, making it a versatile and widely-used language.
26
26
27
27
## Is Java available for Arm Linux?
28
28
29
29
Yes, there are numerous ways to install Java on Arm Linux distributions.
30
30
31
-
Below are some of the common methods to install Java. This includes both the Java runtime environment (JRE), which is used to run Java applications and the Java development kit (JDK) which is used to create Java applications.
31
+
Below are some of the common methods that you can use to install Java. This includes both the Java runtime environment (JRE), which is used to run Java applications, and the Java Development Kit (JDK), which is used to create Java applications.
32
32
33
33
Pick the one that works best for you.
34
34
35
35
{{% notice Note %}}
36
-
The Java Technology Compatibility Kit (TCK) is a test suite that verifies whether a Java implementation conforms to the Java SE Platform Specification. It's a crucial tool for ensuring that Java applications can run consistently across different platforms and implementations.
36
+
The Java Technology Compatibility Kit (TCK) is a test suite that you can use to verify whether a Java implementation conforms to the Java SE Platform Specification. It is a crucial tool for ensuring that Java applications can run consistently across different platforms and implementations.
37
37
38
38
Check the [OCTLA Signatories List](https://openjdk.org/groups/conformance/JckAccess/jck-access.html) to see who has been granted access to the TCK.
39
39
{{% /notice %}}
40
40
41
41
## Can I install Java using the Linux package manager?
42
42
43
-
For distributions using `apt` - including Debian and Ubuntu:
43
+
For distributions using `apt`, including Debian and Ubuntu, you can install Java using this code:
44
44
45
45
```console
46
46
sudo apt update
47
47
sudo apt install default-jre -y
48
48
sudo apt install default-jdk -y
49
49
```
50
50
51
-
For distributions using `dnf` - including Fedora and Red Hat:
51
+
For distributions using `dnf`, including Fedora and Red Hat, you can install Java using this code:
52
52
53
53
```console
54
54
sudo dnf install java-latest-openjdk
55
55
```
56
56
57
-
For distributions using `pacman` - including Arch and Manjaro:
57
+
For distributions using `pacman`, including Arch and Manjaro, you can install Java using this code:
58
58
59
59
```console
60
60
sudo pacman -S jdk-openjdk
@@ -63,7 +63,7 @@ sudo pacman -S jre-openjdk
63
63
64
64
## Can I install Java using Snap?
65
65
66
-
For Linux distributions with`snap` you can install Java using:
66
+
For Linux distributions using`snap`, you can install Java using this code:
More installation options for Corretto are available in the [Amazon Corretto 21 Guide for Linux](https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/linux-info.html)
84
+
You can find out more about the installation options for Corretto in the [Amazon Corretto 21 Guide for Linux](https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/linux-info.html).
85
85
86
86
## How do I install the Microsoft Build of OpenJDK?
87
87
@@ -124,7 +124,7 @@ For more information about the available versions and supported platforms refer
124
124
125
125
## How do I install Eclipse Temurin from the Adoptium Working Group?
126
126
127
-
The Adoptium Working Group promotes and supports high-quality, TCKcertified runtimes and associated technology for use across the Java ecosystem.
127
+
The Adoptium Working Group promotes and supports high-quality, TCK-certified runtimes and associated technology for use across the Java ecosystem.
128
128
129
129
Eclipse Temurin is the name of the OpenJDK distribution from Adoptium.
130
130
@@ -175,7 +175,7 @@ Yes, you can change the default version. For systems with `apt` use:
175
175
sudo update-alternatives --config java
176
176
```
177
177
178
-
You will be given the option to select a new version. The options are depend on the software currently installed on your computer.
178
+
You will be given the option to select a new version. The options are dependent on the software currently installed on your computer.
179
179
180
180
```output
181
181
There are 3 choices for the alternative java (providing /usr/bin/java).
@@ -190,11 +190,11 @@ There are 3 choices for the alternative java (providing /usr/bin/java).
190
190
Press <enter> to keep the current choice[*], or type selection number:
191
191
```
192
192
193
-
For this case, if you select option 1, Java 17 becomes the default.
193
+
In this example, if you select option 1, Java 17 becomes the default.
194
194
195
195
## How do I print the Java version?
196
196
197
-
Print the version of the Java runtime:
197
+
Print the version of the Java runtime, by running:
198
198
199
199
```console
200
200
java -version
@@ -222,27 +222,27 @@ javac 21.0.4
222
222
223
223
## Which version of Java should I use for Arm Linux systems?
224
224
225
-
For performance and security, it’s important to ensure that your version of Java is at least 11.0.12. Earlier versions lack significant performance improvements. Java performance has steadily increased over time and newer versions will provide better performance.
225
+
For performance and security, it’s important to ensure that your version of Java is at least 11.0.12. Earlier versions lack significant performance improvements. Java performance has steadily increased over time and newer versions provide improved performance.
226
226
227
227
## Which flags are available for tuning the JVM?
228
228
229
-
The Java virtual machine (JVM) includes a number of flags which are available to tune performance and aid in debugging. Some of the flags are generalpurpose and some are Arm architecturespecific.
229
+
The Java Virtual Machine (JVM) includes a number of flags which are available to tune performance and aid in debugging. Some of the flags are general-purpose and some are Arm architecture-specific.
230
230
231
-
To print the final values of the flags after the JVM has been initialized run:
231
+
To print the final values of the flags after the JVM has been initialized, run:
232
232
233
233
```console
234
234
java -XX:+PrintFlagsFinal -version
235
235
```
236
236
237
237
## Are there other tools commonly used in Java projects?
238
238
239
-
There are a number of Javarelated tools you may want to install.
239
+
There are a number of Java-related tools you might like to install.
240
240
241
241
### Apache Maven
242
242
243
243
Apache Maven is a powerful build automation tool primarily used for Java projects.
244
244
245
-
It simplifies the build process by providing a uniform build system, dependency management, and project management capabilities.
245
+
It simplifies the build process by providing a uniform build system, with dependency and project management capabilities.
246
246
247
247
You can install it from the `apt` package manager:
248
248
@@ -299,11 +299,11 @@ The output is similar to:
299
299
Welcome to Gradle 8.10!
300
300
301
301
Here are the highlights of this release:
302
-
- Support for Java 23
303
-
- Faster configuration cache
304
-
- Better configuration cache reports
302
+
- Support for Java 23.
303
+
- Faster configuration cache.
304
+
- Improved configuration cache reports.
305
305
306
-
For more details see https://docs.gradle.org/8.10/release-notes.html
306
+
For further information, see https://docs.gradle.org/8.10/release-notes.html.
0 commit comments