eclipse 日食没有开始
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10243209/
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
eclipse not starting
提问by user1326379
When I am trying to start eclipse, I am getting following error window:
当我尝试启动 eclipse 时,出现以下错误窗口:
Java was started but returned exit code=1<br>
C:\Program Files\Java\jdk1.7.0_03\bin\javaw.exe<br>
-Xms40m<br>
-Xmx384m<br>
-XX:-UseCompressedOops<br>
XMaxPermSize=256m<br>
-jar C:\Eclipse\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar<br>
-os win32<br>
-ws win32<br>
-arch x84_64<br>
-showsplash<br>
-launcher C:\Eclipse\eclipse.exe<br>
-name Eclipse<br>
--launcher.library C:\Eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502\eclipse_1406.dll<br>
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar<br>
-launcher.overrideVmargs<br>
-Xms40m<br>
-Xmx384m<br>
-XX:-UseCompressedOops<br>
-XX:MaxPermSize=256m<br>
-jar C:\Eclipse\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar<br>
Background:
背景:
OS: Wndows 7 64 bit SP1
Java: jdk1.7.0_03
Eclipse: eclipse-SDK-3.7.2-win32-x86_64
Java installation folder: C:\Program Files\Java\jdk1.7.0_03\
Path: C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Dell\DW WLAN Card;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Perforce;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\Nitin Personal\Softwares\;C:\Windows\System32\;C:\Program Files\Java\jdk1.7.0_03\bin;C:\Program Files\Java\jre7\bin
操作系统:Wndows 7 64 位 SP1
Java:jdk1.7.0_03
Eclipse:eclipse-SDK-3.7.2-win32-x86_64
Java 安装文件夹:C:\Program Files\Java\jdk1.7.0_03\
路径:C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;% SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Dell\DW WLAN Card;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Perforce;C:\Program Files (x86)\Windows Live\Shared ;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\Nitin Personal\Softwares\;C:\Windows\System32\;C:\Program Files\Java \jdk1.7.0_03\bin;C:\Program Files\Java\jre7\bin
Following is the contents of eclipse.ini:
以下是eclipse.ini的内容:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
openFile
-vm
C:\Program Files\Java\jdk1.7.0_03\bin\javaw.exe
--launcher.defaultAction
-vmargs
-Xms40m
-Xmx384m
-XX:-UseCompressedOops
Please help.
请帮忙。
回答by Hossam Elsharkawy
I faced the same problem and it was solved by changing the value of -Xmx
to a lower value in eclipse.ini.
我遇到了同样的问题,它通过将 的值更改-Xmx
为较低的值来解决eclipse.ini.
The old configuration was:
旧配置是:
-vm C:/your_appication/jvm/jvm160_32/jre/bin/javaw.exe -vmargs -Xms128m -Xmx1024m
The new configuration is:
新的配置是:
-vm C:/your_appication/jvm/jvm160_32/jre/bin/javaw.exe -vmargs -Xms128m -Xmx256m
回答by nasaa
I fixed this problem by removing the javaw.exe. Mine was in C:/Windows/system32/javaw.exe
我通过删除 javaw.exe 解决了这个问题。我的是在 C:/Windows/system32/javaw.exe
回答by Preethi
On the command prompt, call
在命令提示符下,调用
eclipse -clean
日食-清洁
This will launch the eclipse successfully. It worked for me.
这将成功启动日食。它对我有用。
回答by nitind
Is that the default eclipse.ini, or was it edited? "openFile" should be on the line after "--launcher.defaultAction"
那是默认的 eclipse.ini,还是经过编辑的?“openFile”应该在“--launcher.defaultAction”之后的那一行
回答by jstricker
Another option is to try lowering the value specified for -Xmx.
另一种选择是尝试降低为 -Xmx 指定的值。
I ran into the same error when starting Eclipse Helios on a Windows XP machine (so, both 32-bit OS and 32-bit JDK). I hadn't changed any configuration on my machine in a while, so I was stumped.
在 Windows XP 机器(因此,32 位操作系统和 32 位 JDK)上启动 Eclipse Helios 时,我遇到了同样的错误。我有一段时间没有更改我机器上的任何配置,所以我很难过。
The only difference was that I connected to the machine via RDP. I believe doing this causes Windows to load some additional DLLs in locations that limit the available contiguous memory. In my case, I am consistently able to start up the JVM -Xmx1280m when I am sitting in front of the machine, but I can only manage -Xmx1024m when connected via RDP.
唯一的区别是我通过 RDP 连接到机器。我相信这样做会导致 Windows 在限制可用连续内存的位置加载一些额外的 DLL。就我而言,当我坐在机器前面时,我始终能够启动 JVM -Xmx1280m,但是当通过 RDP 连接时,我只能管理 -Xmx1024m。
回答by cyberbemon
Add this line to the .ini
将此行添加到 .ini
-vm
-vm
c:/apps/java/jdk1.6.0_21/jre/bin/server/jvm.dll
if that doesn't help then check and see you have the right eclipse downloaded (32/64bit) Reinstall JDK and JRE to the latest versions see if that helps.
c:/apps/java/jdk1.6.0_21/jre/bin/server/jvm.dll
如果这没有帮助,请检查并查看您是否下载了正确的 eclipse(32/64 位) 将 JDK 和 JRE 重新安装到最新版本,看看是否有帮助。
回答by moeTi
make sure that you do not mix up 64bit Java runtime with 32bit eclipse IDE (or vice versa). this once caused a similar problem for me
确保不要将 64 位 Java 运行时与 32 位 Eclipse IDE 混淆(反之亦然)。这曾经给我造成了类似的问题
回答by Ankush Chhabra
Remove this line
删除此行
-vm C:\Program Files\Java\jdk1.6.0_33\bin\javaw.exe
-vm C:\Program Files\Java\jdk1.6.0_33\bin\javaw.exe
回答by Bae
As per Eclipse Wiki - eclipse.ini vm_value (windows example)
根据Eclipse Wiki - eclipse.ini vm_value(Windows 示例)
This might not work on all systems. If you encounter "Java was started but returned exit code=1" error while starting the eclipse, modify the -vm argument to point to jvm.dll
这可能不适用于所有系统。如果在启动 eclipse 时遇到“Java was started but returned exit code=1”错误,请修改 -vm 参数以指向 jvm.dll
So in your case it would be
所以在你的情况下它会是
-vm
C:\Program Files\Java\jre7\bin\client\jvm.dll
Also note that
还要注意的是
The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM
-vm 选项必须出现在 -vmargs 选项之前,因为 -vmargs 之后的所有内容都直接传递给 JVM
I'm running successfully with -Xmx1024m
我使用 -Xmx1024m 成功运行
回答by daveywc
I was having this problem regularly - but only the 2nd time that I launched Eclipse without having rebooted Windows.
我经常遇到这个问题 - 但只是我第二次在没有重新启动 Windows 的情况下启动 Eclipse。
I am developing for Android and fixed the problem by making sure that my testing device was not connected via USB when starting Eclipse the 2nd and subsequent times.
我正在为 Android 开发并通过确保我的测试设备在第二次和后续启动 Eclipse 时没有通过 USB 连接来解决问题。