Installez Java dans WSL2

sudo apt install openjdk-11-jdk
Envious Emu