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

前端 未结 3 581
说谎
说谎 2020-12-15 07:57

I am having two JRE / SDK in my development environment, however it was necessary in my situation to set JAVA_HOME to 1.4.2, this is causing my eclipse IDE to stop running a

相关标签:
3条回答
  • 2020-12-15 08:33

    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 讨论(0)
  • 2020-12-15 08:34

    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

    0 讨论(0)
  • 2020-12-15 08:54

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

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

    Add Library -> JRE System Library

    Add Library -> JRE System Library

    Set JRE system library to JDK

    Set JRE system library to JDK

    Verify JDK is the reference library

    Verify JDK is the reference library

    0 讨论(0)
提交回复
热议问题