Can not create java virtual machine popup message in eclipse

12,551

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.

Share:
12,551
user1325695
Author by

user1325695

Updated on June 05, 2022

Comments

  • user1325695
    user1325695 almost 2 years

    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?