zoukankan      html  css  js  c++  java
  • Eclipse启动出现 failed to create the java virtual machine 错误

    有多种解决方案:

    方法1

    1. 打开eclipse安装目录下的ecplise.ini (例如d:\eclipse)

    2. 找到 -vmargs, 替换为 -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe" 或者删除这一行.

    方法2

    1. 为eclipse.exe创建一个快捷方式

    2. 在快捷方式上右键, 打开属性对话框

    3. 在目标栏中, 在 d:\eclipse\eclipse.exe 后面添加 -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe", 保存

    方法3

    1. 打开eclipse安装目录下的ecplise.ini (例如d:\eclipse)

    2. 找到 "–launcher.XXMaxPermSize”. 删掉这行或者将大小从512m改为256m后保存

    1st Method

    1. Open the ecplise.ini file which is located in the eclipse installation folder. (i.e in our example : d:\eclipse)

    2. Find & Replace the line -vmargs with -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe" OR just remove the line -vmargs and save it . Now the problem is solved

    2nd Method

    1. Create a desktop shortcut of the eclipse.exe

    2. Right click on the shortcut and select properties.

    3. Now the following dialog box will open.

    4. In the target textbox already d:\eclipse\eclipse.exe will be there. Now replace with D:\eclipse\eclipse.exe -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe"

    3rd Method

    1. Open the ecplise.ini file

    2. It has some of add on configuration . Find the line "–launcher.XXMaxPermSize”. Now remove the the dafault value 256m and save it.

  • 相关阅读:
    js判断手机访问网站自动跳转到手机版
    php 操作数组 (合并,拆分,追加,查找,删除等)
    jQuery传值方法汇总:jQuery.get、jQuery.getJSON、jQuery.post
    JS 页面跳转
    优秀的项目管理者书籍
    Python 的人生
    架构设计流程梳理
    重新定义自己思考问题的方式
    梳理
    程序员高效工具列表
  • 原文地址:https://www.cnblogs.com/milton/p/4215088.html
Copyright © 2011-2022 走看看