Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 298147

Summary: "Add JRE" dialog message isn't always updated
Product: [Eclipse Project] JDT Reporter: Evgeniy Karyakin <anthropophagite>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED INVALID QA Contact:
Severity: trivial    
Priority: P3 CC: markus.kell.r, Michael_Rennie
Version: 3.5.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Message before clicking "Add external JARs..."
none
Message after clicking "Add external JARs..." none

Description Evgeniy Karyakin CLA 2009-12-18 03:00:35 EST
Build Identifier: 20090920-1017

If a user managed to get an error message "Libraries cannot be empty" and then added some libraries by means of pointing to a JRE installation, this message isn't removed.

Reproducible: Always

Steps to Reproduce:
1. Open Preferences -> Java -> Installed JREs.
2. Click "Add", choose "Standard VM", then "Next". A new window appears with "Enter the home directory of the JRE" information message on top.
3. In that window click on "Add External JARs..." and press "Cancel" in "Jar selection" window. Previous message changes to error "Libraries cannot be empty".
4. Import new JRE by pressing "Directory..." button right to "JRE home" text field.
5. Error message "Libraries cannot be empty" still there, although "JRE system libraries" list field is filled with automatically discovered jars from just chosen JRE.
Comment 1 Michael Rennie CLA 2009-12-18 11:03:52 EST
This works for me. 

Part 3 in the steps does nothing at all to the message as it remains asking "Enter the home directory of the JRE" until you specify a valid JRE home directory (one that contains the Java executable). Even if I set a valid directory and delete all the found libraries to get the "Libraries cannot be
empty" message to show up, it goes away as soon as I add libraries back.
Comment 2 Evgeniy Karyakin CLA 2009-12-18 16:32:26 EST
Created attachment 154821 [details]
Message before clicking "Add external JARs..."
Comment 3 Evgeniy Karyakin CLA 2009-12-18 16:33:18 EST
Created attachment 154822 [details]
Message after clicking "Add external JARs..."
Comment 4 Evgeniy Karyakin CLA 2009-12-18 16:33:55 EST
Just got fresh Galileo (20090920-1017) onto Ubuntu Linux box and tried those exact steps, could reproduce this UI glitch: help message became error one. Also, pressing "Remove" button after successfully point to new JVM and have libraries list filled doesn't remove any record from that list, no matter if I select all of them or only one, but this may be another story.
Comment 5 Michael Rennie CLA 2009-12-21 10:36:19 EST
(In reply to comment #4)
> Just got fresh Galileo (20090920-1017) onto Ubuntu Linux box and tried those
> 
Using any of the steps you provided I do not see the error message after clicking / cancelling for adding libraries.

I am using build 3.6M2 (Helios), can you try that and report if the problem occurs for you?
Comment 6 Michael Rennie CLA 2009-12-21 10:45:06 EST
(In reply to comment #5)
> I am using build 3.6M2 (Helios)

Ug. that should read "3.6M4 (Helios)".
Comment 7 Evgeniy Karyakin CLA 2009-12-21 14:34:09 EST
Helios milestone doesn't have this problem on Linux; Windows dude will surely follow. We were speaking about different versions of software, sorry, I'm closing this bug as invalid now.
Comment 8 Michael Rennie CLA 2009-12-22 20:07:18 EST
(In reply to comment #7)
> I'm closing this bug as invalid now.

Thanks for reporting back.