为Eclipse设置正确的PATH [英] Setting the correct PATH for Eclipse

查看:151
本文介绍了为Eclipse设置正确的PATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近改变了我的路径,所以我可以沿着头一个Java书,我之前有过Eclipse。现在,当我尝试再次访问Eclipse时,它不会打开,因为它说它找不到我的目录中使用的JRE或JDK。我已经移动了JDK文件。我有jdk1.8.0_60下载。那么如何让Eclipse再次打开?

解决方案

喜欢Abob说


Eclipse不参考 JAVA_HOME 变量


您应该指定Eclipse在文件 eclipse.ini中找到JDK的位置。具体来说,以下参数(请注意,ini文件中有两行):

  -vm 
C :\Java\JDK\1.8\bin\javaw.exe

或无论你在哪里javaw.exe恰好是。



注意: ini 文件非常特别;请确保参考 https://wiki.eclipse.org/Eclipse.ini 以确保您得到它完全正确。


I recently changed my path so I could follow along in the Head First Java book and I had Eclipse before. Now when I try to get onto Eclipse again it won't open because it says it can't find a JRE or JDK to use in my directory. I have moved the JDK file around. I have jdk1.8.0_60 downloaded. So how can I get Eclipse to open again?

解决方案

Like Abob said:

Eclipse doesn't consult the JAVA_HOME variable

You should specify where Eclipse should find your JDK in the file eclipse.ini. Specifically, the following parameter (note that it is 2 separate lines in the ini file):

-vm
C:\Java\JDK\1.8\bin\javaw.exe

or wherever your javaw.exe happens to be.

Note: The format of the ini file is very particular; make sure to consult https://wiki.eclipse.org/Eclipse.ini to ensure you get it exactly right.

这篇关于为Eclipse设置正确的PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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