If you try installing TLauncher with JDK 17, you may end up with an error saying you need to install Java 8. The solution to this problem is a bit tedious, as you need two Java versions. So I hope this guide will clear everything up 😄
This was tested on Windows 10 and Adoptium's OpenJDK.
First and foremost, uninstall any Java versions on your system including TLauncher.
Afterwards, head over to Adoptium's OpenJDK 8 Archive and download the JRE Installer for your system. While the JRE is installing, make sure that all the features except Set JAVA_HOME variable is selected.