java 无法在 Windows 7 上编辑 eclipse.ini 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7231844/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to edit eclipse.ini file on Windows 7
提问by Tarun
I have eclipse Galileo installed in following location - C:\Program Files (x86) I was getting a weird error while executing Selenium tests on IE 8 browser. As soon as browser is launched I encounter error -
我在以下位置安装了 Eclipse Galileo - C:\Program Files (x86) 我在 IE 8 浏览器上执行 Selenium 测试时遇到一个奇怪的错误。一旦启动浏览器,我就会遇到错误 -
RunTimeError -
C:\Program Files (x86)\Java\jdk1.6.0_20\bin\javaw.exe
The application has requested run time to terminate it in unusual way....
Following this I found that a few encountered this error and got rid of it by increasing jvm heap in eclipse.ini file
在此之后我发现有一些人遇到了这个错误,并通过在 eclipse.ini 文件中增加 jvm 堆来摆脱它
And I tried doing same. I am able to edit eclipse.ini file but as soon as I save it encounter error about "Access Denied". I have admin rights on the Windows 7 machine
我试着做同样的事情。我可以编辑 eclipse.ini 文件,但是一旦我保存它就会遇到关于“拒绝访问”的错误。我在 Windows 7 机器上拥有管理员权限
回答by Umesh Awasthi
That is because of window7 security issue :D
那是因为 window7 安全问题:D
Go to search programe and files --Type notepad when it come right click on notepad and "run as administrator"
转到搜索程序和文件--在记事本上右键单击并“以管理员身份运行”时键入记事本
it will open notepad with administrator rights now use file->open in notepad navigate to your eclipse .ini file make changes and save it :)
它将以管理员权限打开记事本,现在使用文件->在记事本中打开导航到您的 eclipse .ini 文件进行更改并保存:)
回答by ACEG
Quick and dirty fix: Copy the eclipse.ini file to a location where you don't need admin rights (i.e., desktop), edit it, then overwrite the old file with the updated one from your desktop.
快速修复:将 eclipse.ini 文件复制到不需要管理员权限的位置(即桌面),编辑它,然后用桌面上的更新文件覆盖旧文件。
回答by Anup
Or copy eclipse.ini to your favorite location. Create a new shortcut for eclipse. In target, add the following parameter
或者将 eclipse.ini 复制到您喜欢的位置。为 eclipse 创建一个新的快捷方式。在目标中,添加以下参数
"C:\Program Files\Eclipse\eclipse.exe" eclipse --launcher.ini C:\favorite\eclipse.ini