I will post Qiita for the first time. Thank you. I set the path to switch the current Java version to 11.8.
version confirmation
error
--version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
When I googled, it came out that the command was wrong. Eh ... 11 I was able to confirm this, but ... and this time
Run with. Then
openjdk version "1.8.0_252"
```Was displayed.
When I changed the path in reverse (8 → 11) and performed java -version, this was also displayed normally.
I decided to remember it with java -version. I don't know the cause ... (beginner)
Recommended Posts