Community
Participate
Working Groups
Project->properties->Java Build Path-> Add Library -> JRE System Library -> Alternative Library -> Finish. The Alt lib is added to the libraries tab but the OK button is not highlighted so I can't finalize that change. The only options are click cancel or click the close dialog which both undo changes.
Weird, it works for me just fine.
works for me too. what's strange is that even I use the default JRE the alternate JRE options is enabled but with an empty field. moving to debug, suspect a strange container is added to the build path.
If you're using M2, this is likely a side effect of bug 40673.
Yes I am using e3m2.
Please try the patch provided in bug 40673 to see if this solves the problem.
I tried it same result. I select the JRE system library, it shows up in the java build path but the OK button is greyed out so I can not accept the change. From the project menu, select properties, java build path, libraries tab, add library, JRE system library, next, alternative jre, select from the combo box, finish. The jre is now listed in the build path but the OK button to accept this change is greyed out.
Unable to reproduce the problem. What JRE/version are you adding to the buildpath? Do it's libraries appear correctly when you expand the JRE entry (after you add it to the buildpath)?
The problem seems to be that I have JRE_LIB=x/rt.jar and using the add library button I was adding JRE System library which also contained that rt.jar. If I remove the JRE_LIB then I can accept the changes. I am not sure how you could make this obvious? There must be some kind of check which prevents me from accepting this change so maybe you could display a warning telling my why I will be unable to accept it, or what I have to do in order to accept this change.
Moving back to JDT-UI (see previous comment from bug reporter)
Martin, can you please comment.
I can reproduce what you say but there is an error message in the header that explains the problem. ('Duplicated entry '...rt.jar'') I think it's good enough. What do you think?
Oh you are right. I never saw that little message... probably just too focused on why the Ok button was greyed out. I don't think I would have ever thought to look at the title of the tab to determine the source of my error. Could you change the background of the error text to a light red instead of the grey. That would definitely have caught my attention, they grey just seems to blend that message in with everything else.
The rendering of the error message is done by the desktop (Platform UI). I agree with you that having the error on the top is strange. Can you file a new PR against Platform UI? Closing this one
Moved to Bug 41209
Thanks a lot!