Watch the video:
Timestamps:
0:00 - Explanation
0:39 - Finding what version you need
1:27 - Downloading latest version of Java
3:01 - Uninstalling previous versions of Java
3:55 - Finding where Java is installed
Trying to host a server on the newest Minecraft 1.17 server, but getting an error? Using any other Java program and it’s complaining about being “compiled by a more recent version of the Java Runtime”? This video shows you all you need to do to fix it with different methods. By the end, you should be able to run what you’re trying to run.
List of Major Java Versions: https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers
Java SE Downloads: https://www.oracle.com/za/java/technologies/javase-downloads.html
Check where Java is installed: for %i in (java.exe) do @echo. %~$PATH:I