33

I am getting my new laptop going and went to install the latest oracle JDK 7u25. I followed the instructions on this site to do it.

Afterwards when I type java --version in the terminal I get the error:

Error: Could not create the Java Virtual Machine

I tried reinstalling it via a different method but the error wont go away. I am running Ubuntu 12.04 64bit.

Malte Skoruppa
  • 12,856
  • 5
  • 56
  • 65
John
  • 691
  • 3
  • 10
  • 19

1 Answers1

115

Use:

java -version

instead of:

java --version

However, it's still not excusable that such cryptic error message is produced for the extra dash sign. Especially because java is not an amateur software but a kind of the very best software.

Luís de Sousa
  • 13,018
  • 25
  • 77
  • 128
Dmitriy Sintsov
  • 1,269
  • 1
  • 9
  • 7