开发者

Point eclipse IDE to use another JRE / JDK other than one specified in JAVA_HOME

I am having two JRE / SDK in my development environment, however it was ne开发者_Python百科cessary in my situation to set JAVA_HOME to 1.4.2, this is causing my eclipse IDE to stop running as it required 1.6 and above.

May i know how i can modify eclipse ini or environment home to use my other 1.6 installation?


Please try the eclipse.ini entry above the varargs (the following two lines must be two lines in the eclipse.ini file)

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

Find the JVM


Right click the project in Package Explorer -> Configure Build Path

Point eclipse IDE to use another JRE / JDK other than one specified in JAVA_HOME

Add Library -> JRE System Library

Point eclipse IDE to use another JRE / JDK other than one specified in JAVA_HOME

Set JRE system library to JDK

Point eclipse IDE to use another JRE / JDK other than one specified in JAVA_HOME

Verify JDK is the reference library

Point eclipse IDE to use another JRE / JDK other than one specified in JAVA_HOME


From the menu in the top.. Proceed as follows--

Project-->Properties--> Java Build Path--> Libraries--> JRE System Library.

Now click Edit . Select Alternate JRE. Click Installed JRE. Provide path to your other JDK. Then FINISH.

That's it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜