eclipse javaw.exe和eclipse启动问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18466661/
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
javaw.exe and eclipse startup problems
提问by user2717693
I am trying to use eclipse juno and keep getting errors even after reading many pages here.
我正在尝试使用 eclipse juno 并且即使在阅读了许多页面后仍然出现错误。
I get the following error when I try to start eclipse with the command line using C:\Users...\eclipse\eclipse.exe -vm "%JAVA_HOME%\bin\javaw.exe" -data C:...\workspace
当我尝试使用 C:\Users...\eclipse\eclipse.exe -vm "%JAVA_HOME%\bin\javaw.exe" -data C:...\ 通过命令行启动 eclipse 时出现以下错误工作空间
"A Java Runtime Environment (JRE) or Java development Kit (JDK) must be available in order to run eclipse. No Java virtual machine was found after searching the following locations: %JAVA_HOME%\bin\javaw.exe"
“必须有 Java 运行时环境 (JRE) 或 Java 开发工具包 (JDK) 才能运行 eclipse。搜索以下位置后未找到 Java 虚拟机:%JAVA_HOME%\bin\javaw.exe”
I get the following error when I try to start eclipse with the eclipse icon.
当我尝试使用 eclipse 图标启动 eclipse 时,出现以下错误。
"A Java Runtime Environment (JRE) or Java development Kit (JDK) must be available in order to run eclipse. No Java virtual machine was found after searching the following locations: C:...\jre\bin\javaw.exe javaw.exe in your current path"
“必须有 Java 运行时环境 (JRE) 或 Java 开发工具包 (JDK) 才能运行 eclipse。搜索以下位置后未找到 Java 虚拟机:C:...\jre\bin\javaw.exe javaw .exe 在您当前的路径中”
I have tried setting the path, but it doesn't seem to help. Will somone help me by explaining where to put the jre folder and whether to set the path or pathclass or how to set java home... I'm confused. Thank you!
我试过设置路径,但似乎没有帮助。有人会通过解释将 jre 文件夹放在哪里以及是否设置路径或路径类或如何设置 java home 来帮助我...我很困惑。谢谢!
回答by Chetan Gole
Please try this command in windows command line and check if it outputs the correct path.
请在 windows 命令行中尝试此命令并检查它是否输出正确的路径。
echo %JAVA_HOME%
It should point to something like - C:\Program Files\Java\jdk_version If it is not, then you should follow these stepsproperly.
它应该指向类似 - C:\Program Files\Java\jdk_version 的内容。如果不是,那么您应该正确地执行这些步骤。
Also check if your PATH is properly set.
还要检查您的 PATH 是否正确设置。
echo %PATH%
It should include %JAVA_HOME%\jre\bin If it is not, then you should follow these stepsproperly.
它应该包括 %JAVA_HOME%\jre\bin 如果不是,那么您应该正确地执行这些步骤。
Once all the above steps are properly done, the Eclipse should start by directly clicking the icon.
正确完成上述所有步骤后,Eclipse 应通过直接单击该图标启动。
回答by Saurav Prakash Gupta
I too received the same error white starting STS. the solution is simple:
我也收到了同样的错误白色开始 STS。解决方法很简单:
First of all check if you have jdk installed or not. (I guess you do). If not then install it right now and copy the
javaw.exe
file from program files in yourC:\Users...\eclipse\eclipse.exe -vm "%JAVA_HOME%\bin\
location.Go to your variable path and check if your jdk is listed there or not. If not include it.
C:\Program Files\Java\jdk1.8.0_121\bin
Retry. It will hopefully run. And if you are still getting the error, then most probably it's because you are using a wrong jdk (32 bit or 64 bit). Reinstall the correct one.
首先检查你是否安装了jdk。(我猜你会)。如果没有,请立即安装并
javaw.exe
从您C:\Users...\eclipse\eclipse.exe -vm "%JAVA_HOME%\bin\
所在位置的程序文件中复制该文件。转到您的变量路径并检查您的 jdk 是否在那里列出。如果不包括它。
C:\Program Files\Java\jdk1.8.0_121\bin
重试。它有望运行。如果您仍然收到错误消息,那么很可能是因为您使用了错误的 jdk(32 位或 64 位)。重新安装正确的。
This will surely eliminate the error. Enjoy
这肯定会消除错误。享受