Version, 1.16.5, net.minec on 22.0.1 by Oracle Corporation
The server is still using Java 22
In your start script, replace the word "java" with the java 8 path to the javaw.exe
For example:
"C:\Program Files\Java\jre1.8.0_311\bin\javaw.exe" -Xmx8192M -Xms8192M -jar forge. jar
pause
Just make sure the java 8 path is correct and keep the quotation marks