Above given error can occur if you have installed updated java on your server and a shadowed copy of java has been placed in the windows directory. Due to any reason the java which is originally installed got corrupted or removed from the system and installed another one, the shadowed copy of java will remain available in the windows directory. The above error sometimes go away by just setting up the path in the advanced properties of server but if its not being resolved by setting up the server path, please follow the under given instructions.
First check if the java installed on the system is working fine. You can check it by going to command prompt and entering the following command:
C:>java
Error is given as under:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Using the command prompt navigate to the bin under JAVA directory and enter the above command again.