Eclipse - Failed to create the java virtual machine

前端 未结 22 2491
礼貌的吻别
礼貌的吻别 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:41

    I have added below line and its working fine.

    -vm C:/Program Files/Java/jdk1.6.0_16/bin/javax.exe

    -Xmx512m

    -Dosgi.requiredJavaVersion=1.6

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

    Just add your JDK path in windows environment variable. This solves in my case

    enter image description here

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

    I had the same problem, I've fixed it very simple by updating my JDK version. If you don't have JDK installed or not updated, please Go here and install/update it. Mostly your problem will be fixed.

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

    Change the below parameter in the eclipse.ini (which is in the same directory as eclipse.exe) to match one of your current Java version. Note that I also changed the maximum memory allowed for the eclipse process (which is run in a JVM). If you having multiple Java versions installed this can be happen. The below trick word for me.

    -Xmx512m
    -Dosgi.requiredJavaVersion=1.6
    

    I changed this to,

    -Xmx1024m
    -Dosgi.requiredJavaVersion=1.7
    

    Then It worked.

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

    It works for me after removing -XX:+UseParallelOldGC option from file.

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

    --launcher.XXMaxPermSize MaxPermSize=256m -Xms512m -Xmx1024m

     replace with below one
    

    --launcher.XXMaxPermSize MaxPermSize=128m -Xms256m -Xmx512 m

    0 讨论(0)
提交回复
热议问题