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/getting-started/java-development-on-the-raspberry-pi-with-vsc.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@ tags: ["Visual Studio Code"]
6
6
7
7
## Java on the Raspberry Pi
8
8
9
-
You need Java 21 or newer to use Pi4J V3+. Please check the [Prepare a Raspberry Pi](/prepare/install-java/) and [Install Java and Tools](/prepare/install-java/) instructions. On a board with ARMv7 or ARMv8 you will get this result:
9
+
{{% notice warning %}}
10
+
Please check the [Prepare a Raspberry Pi](/prepare/install-java/) and [Install Java and Tools](/prepare/install-java/) instructions.
11
+
{{% /notice %}}
12
+
13
+
You need Java 21 or newer to use Pi4J V3+. On a board with ARMv7 or ARMv8 you will get this result:
10
14
11
15
```shell
12
16
$ java -version
@@ -17,8 +21,8 @@ OpenJDK 64-Bit Server VM Zulu21.38+21-CA (build 21.0.5+11-LTS, mixed mode, shari
17
21
18
22
Keep in mind this version is **only compatible with ARMv7 or higher** and doesn't support all
19
23
Raspberry Pi board versions. If you have a Raspberry Pi A (version 3), B (version 2 or higher),
20
-
or Compute (version 3 or higher), you are good to go! For all other boards, or if you get the error below, you will need some additional steps
21
-
that are described on [Java for ARMv6/7/8](/documentation/java-installation/).
24
+
or Compute (version 3 or higher), you are good to go! For all other boards, or if you get the error below,
25
+
you will need some additional steps that are described on [Java for ARMv6/7/8](/documentation/java-installation/).
22
26
23
27
```shell
24
28
$ java -version
@@ -28,9 +32,14 @@ Server VM is only supported on ARMv7+ VFP
28
32
29
33
## Maven
30
34
31
-
Pi4J is using Maven as build tool, this allows you to compile your code with the required modules into JAR-file thanks
32
-
to the pom.xml configuration file which you can find in the root of a project. We need to install Maven and can do this
33
-
with a single command, after which we can immediately check the installation by requesting the version:
35
+
{{% notice info %}}
36
+
If you followed the steps described on [Prepare a Raspberry Pi](/prepare/install-java/) and [Install Java and Tools](/prepare/install-java/),
37
+
you already have Mave installed.
38
+
{{% /notice %}}
39
+
40
+
Pi4J is using Maven as build tool, this allows you to compile your code with the required modules
41
+
into JAR-file thanks to the `pom.xml` configuration file which you can find in the root of a project.
42
+
We need to install Maven and can do this with a single command, after which we can immediately check the installation by requesting the version:
0 commit comments