2

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

ParthPatel
  • 114
  • 2
  • 18
  • What are the Xmx/Xms arguments ? Check the _JAVA_OPTIONS system variable , if its not there use `export _JAVA_OPTIONS='-Xms64m -Xmx128m -Dawt.useSystemAAFontSettings=lcd'` – Kenneth Clark Jun 10 '15 at 06:09
  • possible duplicate of [JRE 1.7 returns: java/lang/NoClassDefFoundError: java/lang/Object](http://stackoverflow.com/questions/11808829/jre-1-7-returns-java-lang-noclassdeffounderror-java-lang-object) – 200_success Jun 10 '15 at 06:41
  • I have tried your solution but giving same error for java -version – ParthPatel Jun 10 '15 at 08:31
  • java -fullversion is working fine for me but java -version not working – ParthPatel Jun 10 '15 at 09:44

1 Answers1

1

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.

dustinroepsch
  • 1,122
  • 1
  • 7
  • 24
  • 2
    I have checked that site , but that solution is not working. Previously i Have java7 which was working fine.. i have unistall it and then tried to manual install java 8 but facing same issue on fresh machine also. – ParthPatel Jun 10 '15 at 08:31