I just did it on 8.9.0 recently here: Can't start elastic elasticsearch-8.9.0 - #10 by choilee
And the message was printed... So I don't know exactly what happened. What is your OS?
But why did you do this:
sudo apt update && sudo apt-get install openjdk-8-jdk
?