Skip to content

Commit eda00e2

Browse files
committed
Update Java info for VSC
1 parent 9a8c47d commit eda00e2

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

content/getting-started/java-development-on-the-raspberry-pi-with-vsc.md

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,19 @@ tags: ["Visual Studio Code"]
66

77
## Java on the Raspberry Pi
88

9-
To use Pi4J V3+ you'll need Java 21 or newer.
10-
11-
Keep in mind this version is **only compatible with ARMv7 or higher** and doesn't support all
12-
Raspberry Pi board versions. If you have a Raspberry Pi A (version 3), B (version 2 or higher),
13-
or Compute (version 3 or higher), you are good to go! For all other boards you will need some additional steps
14-
that are described on ["Java for ARMv6/7/8"](/documentation/java-installation/).
15-
16-
If you prepared a microSD card with the latest version of Raspberry Pi OS (full version), as described on
17-
["Set up a new Raspberry Pi"](/getting-started/set-up-a-new-raspberry-pi/), you can check the installed Java version
18-
in the terminal. On a board with ARMv7 or ARMv8 you will get this result:
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:
1910

2011
```shell
2112
$ java -version
22-
openjdk version "11.0.3" 2019-04-16
23-
OpenJDK Runtime Environment (build 11.0.3+7-post-Raspbian-5)
24-
OpenJDK Server VM (build 11.0.3+7-post-Raspbian-5, mixed mode)
13+
openjdk version "21.0.5" 2024-10-15 LTS
14+
OpenJDK Runtime Environment Zulu21.38+21-CA (build 21.0.5+11-LTS)
15+
OpenJDK 64-Bit Server VM Zulu21.38+21-CA (build 21.0.5+11-LTS, mixed mode, sharing)
2516
```
2617

27-
If you get an error like below, you'll need to follow the steps described on ["Java for ARMv6/7/8"](/documentation/java-installation/).
18+
Keep in mind this version is **only compatible with ARMv7 or higher** and doesn't support all
19+
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/).
2822

2923
```shell
3024
$ java -version
@@ -48,9 +42,7 @@ Maven home: /usr/share/maven
4842
## Visual Studio Code
4943

5044
Visual Studio Code (VSC) is the free IDE (Integrated Developer Environment) by Microsoft. It's designed as a universal
51-
tool that you can use for multiple programming languages with extensions. On your Raspberry Pi open a web browser,
52-
go to the ["VSC Download page (code.visualstudio.com/Download)"](https://code.visualstudio.com/Download) and
53-
select the "Linux .deb ARM" version.
45+
tool that you can use for multiple programming languages with extensions.
5446

5547
{{< gallery >}}
5648
{{< figure link="/assets/getting-started/vsc/visualstudiocode-download.png" caption="Download page for VSC" caption-position="center" caption-effect="fade" >}}
@@ -59,15 +51,8 @@ select the "Linux .deb ARM" version.
5951
{{< /gallery >}}
6052
{{< load-photoswipe >}}
6153

62-
When the download is finished, open a terminal, go to the Download directory and install the downloaded deb-file like this:
63-
64-
```shell
65-
$ cd /home/pi/Downloads
66-
$ sudo apt install ./code_1.53.0-1612367698_armhf.deb
67-
```
68-
69-
Since 02/2021 there is even an easier way, as Visual Studio Code is now available as a Raspberry Pi OS apt package.
70-
Use the following commands:
54+
Visual Studio Code is available as a Raspberry Pi OS apt package.
55+
Use the following commands to install it:
7156

7257
```shell
7358
$ sudo apt update

0 commit comments

Comments
 (0)