Solution from another thread (it works):
"So. If anyone's wondering what my issue was. I needed to remove the exclamation points from one of the folders everything was contained in. Everything I was struggling with that had to do with java magically fixed itself when I got rid of exclamation points in the root folders."
Same problem here. Version: 1.19.4 - 45.0.40
OS: Windows 11. java version 17.0.6
Log:
JVM info: Oracle Corporation - 17.0.6 - 17.0.6+9-LTS-190
java.net.preferIPv4Stack=true
Found java version 17.0.6