Centos7 View java-v Error [How to Solve]

[root@localhost ~]# java -v
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

jdk1. 7 view the version number through java -V and java --version,
and jdk1 8 you have to check the version number through java -version

Similar Posts: