Install, build and debug a flutter app in WSL2 (Windows Subsystem for Linux).
To install the JDK, execute the following command, which will also install the JRE:
sudo apt install default-jdk
Add the following two lines to /etc/profile
(setting the JAVA_HOME
environment variable):