getting JRE system library unbound error in build path

后端 未结 6 494
再見小時候
再見小時候 2021-02-02 07:46

getting a JRE system library unbound error in build path, tried all suggestions from the below links, however did not work. I have jdk 1.6.0_29, I have also tried to install oth

相关标签:
6条回答
  • 2021-02-02 08:00

    I too faced the same issue. I followed the following steps to resolve my issue -

    • Right click on your project -> Properties
    • Select Java Build Path in the left menu
    • Select Libraries tab
    • Under the module path, select the troublesome JRE entry
    • Click on Edit button
    • Select Workspace default JRE.
    • Click on Finish button

    If the above steps don't work for you, instead of Workspace default JRE, you can choose an Alternate JRE and give the path to the JRE that you want to point.

    0 讨论(0)
  • 2021-02-02 08:09

    Another option is:

    • Project > Properties > Java Build Path
    • Select Libraries tab
    • Select the troublesome JRE entry
    • Click Edit button
    • Choose an alternate JRE
    • Click Finish button

    Pointing the project at your installed JRE might be a better choice than renaming your JRE to match the old project code.

    0 讨论(0)
  • 2021-02-02 08:09

    oh boy, this got resolved, I just had to name my Installed JRE appropriately. I had only the jdk installed and eclipse had taken the default jdk name, i renamed it to JavaSE-1.6 and voila it worked, though i had to redo everthing from the scratch.

    0 讨论(0)
  • 2021-02-02 08:11

    This is like user3076252's answer, but you'll be choosing a different set of options:

    • Project > Properties > Java Build Path
    • Select Libraries tab > Alternate JRE > Installed JREs...
    • Click "Search." Unless you know the exact folder name, you should choose a drive to search.

    It should find your unbound JRE, but this time with all the numbers in it's name (rather than unbound), and you can select it. It will take a while to search the drive, but you can stop it at any time, and it will save the results, if any.

    0 讨论(0)
  • 2021-02-02 08:11

    The solution that work for me is the following:

    1. Select a project
    2. Select the project menu
    3. Select properties sub-menu
    4. In the window "properties for 'your project'", select Java Build Path tab
    5. Select libraries tab
    6. Select the troublesome JRE entry
    7. Click on edit button
    8. Select JRE entry
    9. Click on finish button
    0 讨论(0)
  • 2021-02-02 08:24

    Go to project then

    Right click on project---> Build Path-->Configure build path
    

    Now there are 4 tabs Source, Projects, Libraries, Order and Export

    Go to

    Libraries tab -->  Click on Add Library (shown at the right side) -->
    select JRE System Library --> Next-->click Alternate JRE --> select
    Installed JRE--> Finish --> Apply--> OK.
    
    0 讨论(0)
提交回复
热议问题