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.
Now when I launch the application I get an error dialog that states "can not create java virtual machine".
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:
-vm
/opt/jdk/bin/javaw.exe
You should replace the above path with the path of your executable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With