Bug 536127 - Detected JRE name on macOS incorrect
Summary: Detected JRE name on macOS incorrect
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.9   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-21 05:38 EDT by Gunnar Wagenknecht CLA
Modified: 2022-09-15 17:11 EDT (History)
2 users (show)

See Also:


Attachments
screencast (animated gif) (852.01 KB, image/gif)
2018-06-21 05:38 EDT, Gunnar Wagenknecht CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2018-06-21 05:38:03 EDT
Created attachment 274568 [details]
screencast (animated gif)

Photon 4.8 RC2
- Go to preferences Java > Installed JREs
- Click Search...
- Browse to /Library/Java/JavaVirtualMachines
- Click OK

Expected: JREs properly named "Java SE ... [version]"

Actual: JREs names "Home ..."
Comment 1 Jay Arthanareeswaran CLA 2018-06-21 07:54:59 EDT
Reproduced in master. 

Belongs in debug, but will keep it in my radar.
Comment 2 Jay Arthanareeswaran CLA 2018-06-21 10:29:42 EDT
Looking at the code, we just take the folder containing the bin folder and consider it the name of the Java installation. The trouble with this is, the folder name/structure could be anything and not sure if we are ever going to get the right name. I guess we will have to let the user name the JDK suitably and move on.

If there other opinions, please let me know.
Comment 3 Gunnar Wagenknecht CLA 2018-06-21 15:03:09 EDT
I opened this bug because I think this isn't correct. I always had the impression that there is some code that gets the name right.

Coincidentally after posting this, I went back to the page and got an error about invalid values. I did a few attempts and at some point it seems that it reinitialized the page. As a result, I had all the JDKs on my Mac listed with the proper name.
Comment 5 Gunnar Wagenknecht CLA 2018-06-21 15:12:21 EDT
So maybe "Search..." wasn't the button/action I was looking for? Maybe I just wanted to have a "Search for JDKs on my local system" button/action.
Comment 6 Eclipse Genie CLA 2020-06-18 11:48:20 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Sarika Sinha CLA 2020-06-19 00:38:07 EDT
Still valid.
Comment 8 Eclipse Genie CLA 2022-09-15 17:11:55 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.