Tuesday, November 15, 2011

Could not determine current working directory

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)


There could be two possible reasons.

1. You have not set the proper classpath, If this the case then make sure you set JAVA_HOME path in class path.

2.  You do not have the permission to start the java process in that directory, Simply ask your UNIX / LINUX administrator to grant the access.

Also you can try running the java process from your home directory.