1.19.2 requires Java 17. If changing the version doesn't work, in order to root out one of the more common issues, we'll need to see your hosts file. Here's the steps to getting this file.
1) Press the Win + R key on your keyboard.
2) Paste the following into the prompt that opens: 'notepad %windir%\system32\drivers\etc\hosts'
3) Use Ctrl+A to select everything in the file, then Ctrl+C into the textbox to post to this thread.