uno.check icon indicating copy to clipboard operation
uno.check copied to clipboard

[Uno.Check] OpenJDK checkup is not correct

Open MartinZikmund opened this issue 1 year ago • 2 comments

Discussed in https://github.com/unoplatform/uno/discussions/17666

After installing the templates I started uno-check and there is still a missing dependency. The message is

──────────────────────────────────────────────────────────────────────────── ¤ Recommendation: Install OpenJDK11 OpenJDK 11 is missing, follow the installation instructions here: https://learn.microsoft.com/en-us/java/openjdk/install#install-on-ubuntu ────────────────────────────────────────────────────────────────────────────

On my system is installed:

  # rpm -qa | grep jdk
java-21-openjdk-devel-21.0.4.0~6-1.1.x86_64
java-21-openjdk-21.0.4.0~6-1.1.x86_64
java-11-openjdk-headless-11.0.24.0~7-1.1.x86_64
java-11-openjdk-11.0.24.0~7-1.1.x86_64
java-21-openjdk-headless-21.0.4.0~6-1.1.x86_64
java-11-openjdk-devel-11.0.24.0~7-1.1.x86_64
  #
var xamSdkInfo = new AndroidSdkInfo((traceLevel, msg) => Util.Log(msg), null, null, null);
of methode OpenJdkCheckup.Examine throws an exception.

But this is not due to a missing OpenJDK but due to missing AndroidSDK which I do not need.

Here the full log from Debug mode

› OpenJDK 11.0 Checkup...
ValidateAndroidSdkLocation: ``, result=False
ValidateAndroidSdkLocation: ``, result=False
ValidateAndroidSdkLocation: `/home/joachim/Dokumente/Library/Android/sdk`, result=False
ValidateJavaSdkLocation: ``, result=False
ValidateJavaSdkLocation: ``, result=False
ValidateJavaSdkLocation: `/usr/lib64/jvm/java-21-openjdk-21`, result=True
ValidateAndroidNdkLocation: ``, result=False
ValidateAndroidNdkLocation: ``, result=False
System.InvalidOperationException: Could not determine Android SDK location. Please provide `androidSdkPath`.
  at Xamarin.Android.Tools.AndroidSdkInfo..ctor(Action<TraceLevel, string> logger, string androidSdkPath, string androidNdkPath, string   
     javaSdkPath)                                                                                                                         
  at Task<DiagnosticResult> DotNetCheck.Checkups.OpenJdkCheckup.Examine(SharedState history) in                                           
     /home/joachim/nas/08_source/03_Download/uno.check/UnoCheck/Checkups/OpenJdkCheckup.cs:63                                             

So the error message of uno-check in Release mode is misleading!

MartinZikmund avatar Jul 25 '24 07:07 MartinZikmund

Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

github-actions[bot] avatar Aug 25 '25 00:08 github-actions[bot]

Hey @MartinZikmund, found a possible duplicate, would you mind to check if one can be closed or title adjusted to eventual Platform specific issue?

  • #356

DevTKSS avatar Dec 29 '25 15:12 DevTKSS