Java and Jquery

Freelance Jobs
Showing posts with label classpath. Show all posts
Showing posts with label classpath. Show all posts

Wednesday, May 18, 2011

Error occurred during initialization of VM

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:1072)

Cause:
This error may occur if you do not have the permission to start the java process or you have not set the proper classpath.

eg:
$ javac
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.

Resolution:
1. Start the java process with root permission
2. Get the execute access of java.exe/java for current user/group .