The other day, there was a scene where I used a different PC than usual. When I tried to check the Java version that was included, I got the following error. ..
$ java --version Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
––The version option is not recognized? Can't create a Java virtual machine? ?? Fatal error? ?? ??
When I thought it was strange, I found the following article.
Apparently you can use ––vesion after JDK9, Before JDK8, it seems to be useless unless it is –version. With one hyphen difference. .. When checking the Java version, the following that works with any version is better ◎
$ java -version