Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not create java virtual machine popup message in eclipse

Tags:

eclipse

jvm

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?

like image 434
user1325695 Avatar asked May 23 '26 20:05

user1325695


1 Answers

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.

like image 110
Chander Shivdasani Avatar answered May 26 '26 14:05

Chander Shivdasani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!