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.

  • 相关阅读:
    000_linux之Ubuntu安装
    001_linux基础命令
    018_linux驱动之_阻塞和非阻塞
    019_linux驱动之_定时器的引入
    017_linux驱动之_信号量
    016_linux驱动之_原子操作
    python logging模块整理
    python sys与shutil模块
    python configparser模块
    python os模块
  • 原文地址:https://www.cnblogs.com/milton/p/4215088.html
Copyright © 2011-2022 走看看