In Ubuntu java -version gives Error occurred during initialization of VM

5.8k Views Asked by At

I have Ubuntu 64 bit 13.10 I have manually install java 8 in my machine But When i do

java -version

it gives me

orbit@parth-desktop:~$ java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Need help on this. I have installed java in /usr/lib/jvm folder

1

There are 1 best solutions below

1
On

According to Rigg802 in this post, you most likely installed the jvm without proper permissions. If you look at that link, he reccomends uninstalling and reinstalling with proper permissions (ie sudo), and if that doesn't work he has some more solutions as well.