I use Nix to manage my JDKs. Whenever I use Temurin, Zulu, or OpenJDK, the "Language Support for Java(TM) by Red Hat" extension can correctly use the Java version installed in a specific Nix development environment.
However, when I use GraalVM CE, the extension throws an error like the following:
I have created a repo with a minimal setup and detailed instructions to reproduce the error (issue number 1 in the README).
https://github.com/ThomasVitale/vscode-java-nix-issue