javaw.exe和eclipse启动问题 [英] javaw.exe and eclipse startup problems

查看:401
本文介绍了javaw.exe和eclipse启动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我尝试使用命令启动eclipse时,我收到以下错误,行使用C:\Users ... \eclipse\eclipse.exe -vm%JAVA_HOME%\bin\javaw.exe-data C:... \workspace



Java运行时环境(JRE)或Java开发工具包(JDK)必须可用才能运行eclipse。在搜索以下位置后,没有找到Java虚拟机:
%JAVA_HOME %\bin\javaw.exe



当我尝试使用eclipse图标启动eclipse时,我收到以下错误。



Java运行时环境(JRE)或Java开发工具包(JDK)必须可用才能运行eclipse。在搜索以下位置后找不到Java虚拟机:
C:.. .\jre\bin\javaw.exe
当前路径中的javaw.exe



我已经尝试设置路径,但是没有似乎帮助。将会帮助我解释在哪里放置jre文件夹,以及是否设置路径或路径类或如何设置java家...我很困惑。谢谢!

解决方案

请在Windows命令行中尝试此命令,检查是否输出正确的路径。

  echo%JAVA_HOME%

它应该指向像C:\Program Files\Java\jdk_version
如果不是,那么你应该遵循这些步骤正确。



还要检查你的PATH是否正确设置。

  echo%PATH%

它应该包括%JAVA_HOME%\jre\bin如果不是,那么你应该遵循这些步骤正确。



一旦所有上述步骤都已经完成,Eclipse应该直接点击图标。


I am trying to use eclipse juno and keep getting errors even after reading many pages here.

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

"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"

I get the following error when I try to start eclipse with the eclipse icon.

"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"

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!

解决方案

Please try this command in windows command line and check if it outputs the correct path.

   echo %JAVA_HOME%

It should point to something like - C:\Program Files\Java\jdk_version If it is not, then you should follow these steps properly.

Also check if your PATH is properly set.

   echo %PATH%

It should include %JAVA_HOME%\jre\bin If it is not, then you should follow these steps properly.

Once all the above steps are properly done, the Eclipse should start by directly clicking the icon.

这篇关于javaw.exe和eclipse启动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆