ethnanon
ethnanon

Reputation: 98

Java Error: java -v command throws errors

I am running an Ubuntu 12.04.5 server and am trying to install Java.

Running java -v in console provides this error message:

*Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.*

Upvotes: 1

Views: 492

Answers (1)

Thanga
Thanga

Reputation: 8101

Execute the command

java -version

Upvotes: 1

Related Questions