Repository navigation
Description
Current behavior 🐛
On Linux with Microsoft OpenJDK 17.0.21.0.2 installed, the OpenJDK checkup fails with OpenJDK 17 is missing, although that JDK is newer than the 17.0.19 the manifest requires.
OpenJdkCheckup.TryGetJavaJdkInfo (UnoCheck/Checkups/OpenJdkCheckup.cs) reads javac -version and parses the matched string with NuGetVersion.TryParse. NuGetVersion accepts at most four numeric components, so 17.0.21.0.2 fails to parse, the method returns false, and the JDK is dropped from the candidate list without any message. Only the other JDKs on the machine are then considered.
› OpenJDK 17.0.19 Checkup...
javac 17.0.16
javac 17.0.16
javac: /usr/bin/javac
/usr/lib/jvm/msopenjdk-17-amd64/bin/javac
javac 17.0.21.0.2 <- probed, then silently discarded
– 17.0.16 (/usr/lib/jvm/temurin-17-jdk-amd64) <- only candidate left, below 17.0.19
¤ Recommendation: Install OpenJDK17
OpenJDK 17 is missing, follow the installation instructions here:
https://learn.microsoft.com/en-us/java/openjdk/install#install-on-ubuntu
Checkup had Error status: openjdk
With the previous package (17.0.20.1, four components) the same machine passes:
– 17.0.16 (/usr/lib/jvm/temurin-17-jdk-amd64)
– 17.0.20.1 (/usr/lib/jvm/msopenjdk-17-amd64/bin/..)
Parsing checked directly against NuGet.Versioning:
| Input | NuGetVersion.Parse |
|---|---|
17.0.16 |
OK |
17.0.20.1 |
OK |
17.0.21.0 |
OK |
17.0.21.0.2 |
throws '17.0.21.0.2' is not a valid version string. |
Impact: packages.microsoft.com published msopenjdk-17 17.0.21.0.2-1 on 2026-10-23 (between ~22:55 and ~23:40 UTC). Since then, every Linux Android job in the unoplatform/uno CI fails in the Install .NET Workloads step (uno-check 1.35.0-dev.76, --pre-major), on every PR and on master. Example: build 241134. Build 241124 shows both sides of the change: its Android job installed 17.0.20.1-1 and passed, its NativeAOT job installed 17.0.21.0.2-1 about 45 minutes later and failed.
Expected behavior 🎯
A JDK whose version has more than four numeric components is detected and compared against the manifest version: 17.0.21.0.2 satisfies 17.0.19 and the checkup reports OK.
A javac whose version cannot be parsed should at least be logged instead of disappearing, and the failure message should not claim OpenJDK is missing when a javac was found.
How to reproduce it (as minimally and precisely as possible) 🔬
On Ubuntu 24.04:
wget https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y msopenjdk-17=17.0.21.0.2-1
sudo update-java-alternatives --set msopenjdk-17-amd64
dotnet tool update --global uno.check --version 1.35.0-dev.76 --add-source https://api.nuget.org/v3/index.json
uno-check --verbose --ci --non-interactive --pre-major --skip androidemulator --skip gtk3 --skip unosdkThe checkup fails if no other JDK at or above 17.0.19 is present. Installing msopenjdk-17=17.0.20.1-1 instead makes it pass.
Without a machine: NuGetVersion.TryParse("17.0.21.0.2", out _) returns false.
Workaround 🛠️
Pin the package to the last four-component version: sudo apt-get install -y msopenjdk-17=17.0.20.1-1. unoplatform/uno applies this pin in its CI Linux template until this is fixed.
Affected platforms 📱💻🖥️
Android (development machines and CI agents on Linux, observed on Ubuntu 24.04). The parsing code is shared across OSes, so Windows and macOS would be affected the same way if a Microsoft OpenJDK build there reports a five-component version.
Uno.Sdk version (and other relevant versions) 📦
- uno.check
1.35.0-dev.76, embedded manifestuno.ui-preview-major.manifest.json(openjdk.version=17.0.19) msopenjdk-1717.0.21.0.2-1fromhttps://packages.microsoft.com/ubuntu/24.04/prod(noble/main amd64)- Ubuntu 24.04 Azure Pipelines agent
IDE version 🧑💻
N/A (CI, command line)
Anything else we need to know? 💬
Suggested fix: in TryGetJavaJdkInfo, keep only the first four numeric components of the matched version before parsing (17.0.21.0.2 → 17.0.21.0), and add a unit test that feeds javac 17.0.21.0.2 output. Once a build with the fix is published, unoplatform/uno can bump GlobalUnoCheckVersion and drop the msopenjdk-17 pin.
Activity
ajpinedam commentedon Oct 24, 2026
Workaround in unoplatform/uno CI: unoplatform/uno#25680 pins
msopenjdk-17=17.0.20.1-1. Revert it once a uno-check build with this fix is published andGlobalUnoCheckVersionis bumped.ci: Pin msopenjdk-17 to a version uno-check parses