Eclipse - Failed to create the java virtual machine

前端 未结 22 2492
礼貌的吻别
礼貌的吻别 2020-12-08 01:18

I\'m having issue with running my Eclipse with the following config:

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--         


        
相关标签:
22条回答
  • 2020-12-08 01:54

    I deleted my eclipse.ini after non of the above worked for me.

    I fully expected the next run (when it looked likely to work) to recreate it so I could compare but it did not.

    So I can't tell what fixed it specifically.

    an oddity I did have however was jdk 1.7 but when I ran

    C:\Users\jonathan.hardcastle>java -version Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.7', but '1.6' is required. Error: could not find java.dll Error: could not find Java SE Runtime Environment.

    i got the above.. so I (re?)installed jre 1.7 specifically and that went away.

    This was not linked to my eclipse success directly.

    0 讨论(0)
  • 2020-12-08 01:55

    it works for me after changing MaxPermSize=512M to MaxPermSize=256M

    0 讨论(0)
  • 2020-12-08 01:58

    I had exactly the same problem, one day eclipse wouldn't open. Tried editing eclipse.ini to the correct java version 1.7, but still the same error. Eventually changed :

    -Xms384m 
    -Xmx384m
    

    ...and all working.

    0 讨论(0)
  • 2020-12-08 02:01

    There are two place in eclipse.ini that includes

    --launcher.XXMaxPermSize
    256m
    

    make it

    --launcher.XXMaxPermSize
    128m
    
    0 讨论(0)
提交回复
热议问题