The Java image mcr.microsoft.com/vscode/devcontainers/java:0.205.18-11 is not containing Java.
Can be tested with the following commands:
docker run --rm mcr.microsoft.com/vscode/devcontainers/java:0.205.18-11 java --version : "java": executable file not found in $PATH: unknown.
docker run --rm mcr.microsoft.com/vscode/devcontainers/java:0.205.17-11 java --version : openjdk 11.0.17 2022-10-18 LTS
I had a look at the history of the Java folder but did not really find anything relevant... https://github.com/devcontainers/images/commits/main/src/java