Thursday, November 10, 2011

Error occurred during initialization of VM

If you get below mentioned error

Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
        at java.lang.System.initProperties(Native Method)
        at java.lang.System.initializeSystemClass(System.java:1070)

Possible reason could be JAVA_HOME is not set properly OR System is not able to locate JVM (JAVA) path. Make sure that JAVA_HOME is set in classpath properly.