I want to log the GC details and added following VM argument in eclipse:
-verbose:gc
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-Xmx768M
Now when I launch the application I get an error dialog that states "can not create java virtual machine".
What is the problem?
The following link explains how to supply VM arguments in eclipse.
There could be quite a few reasons for this. One common one is that eclipse cant find the java executable. You can open the eclipse.ini file and add:
You should replace the above path with the path of your executable.