This is a discussion on Fix: Error occurred during initialization of VM— within the Programming Tutorials forums, part of the Coders' Paradise category; i went through hell trying to figure this one out ;| anyway, in case you ever get the error Code: ...
i went through hell trying to figure this one out ;|
anyway, in case you ever get the error
there's a simple solution to it. I have no idea how it happens, it just does, and it's a pain in the ass to fix.Code:Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
so, you type java in cmd, you get
then, you navigate to your java directory, and you still getCode:Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
Although we may not know how it got there initially, the problem is that your path is targeting the wrong version of java.Code:Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
Go ahead and navigate to your %PROGRAMFILES%\Java
Well well well, what do we have here? Two jdk folders?
Go back to your cmd, and navigate to the higher one. in my case, it was C:\Program Files (x86)\Java\jdk1.6.0_23\bin\
So now that we know that the path is wrong, all we have to do is type a huge command to navigate to the java directory!
YouTube - nope.avi
Go to your environmental variables, and edit the PATH (CLASSPATH if necessary), changing ";C:\Program Files (x86)\Java\jdk1.6.0_20\bin\" to ";C:\Program Files (x86)\Java\jdk1.6.0_23\bin\"
And thus, we have fixed this pain in the arse error!![]()
[SIGPIC][/SIGPIC]
eat some spectrum