Skip to content

Commit 76b57d6

Browse files
authored
Update README.md
1 parent 7ba22b2 commit 76b57d6

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

README.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
1-
# OpenJDK-Raspberry-Pi-Zero-W-armv6
2-
In this repository you find OpenJDK builds for Raspberry PI Zero W / armv6 architecture and also a tutorial how to build your own OpenJDK release in case you need that
1+
# OpenJDK RaspberryPi Zero W armv6hf
2+
In this repository you find OpenJDK builds for Raspberry PI Zero W / armv6hf architecture and also a tutorial how to build your own OpenJDK release in case you need that.
3+
4+
Raspberry PI Zero and Zero W use BCM2835 SoC. Also original Raspberry PI uses this SoC. CPU architecture is 32 Bit ARMv6hf which means hardfloat support.
5+
6+
When trying to install Java from the official repository latest version is Java 11 and when trying to execute you get an error
7+
8+
```
9+
sudo apt install default-jre
10+
11+
pi@raspberrypi:~ $ java
12+
Error occurred during initialization of VM
13+
Server VM is only supported on ARMv7+ VFP
14+
```
15+
16+
## Azul JDK
17+
18+
At first place have a look at https://www.azul.com/downloads/?package=jdk
19+
20+
They provide a working JDK 11 for Raspberry PI Zero W.
21+
22+
Make sure to select ARM 32-bit HF and then have a look at the Architecture column. There must be "v6" present otherwise the package won't run on the Raspberry PI Zero W.
23+
24+
Current (February 2022) there is no JDK17 for armv6.
25+
26+
## Build the JDK on your own
27+
28+
You can build your JDK on your own. Go to releases on the official repository https://github.com/openjdk/jdk/tags and select your desired version. For this repo I've chosen https://github.com/openjdk/jdk/releases/tag/jdk-17-ga
29+
Download the source code and extract it
30+
31+
You need a fitting crosscompiler to compile. There is currently none working so we have to build one ourselves. That is part of another article an Repo.
32+
33+

0 commit comments

Comments
 (0)