Community
Participate
Working Groups
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 ..."
Reproduced in master. Belongs in debug, but will keep it in my radar.
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.
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.
Looks like the code is here: https://github.com/eclipse/eclipse.jdt.debug/blob/master/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/MacInstalledJREs.java
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.
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.
Still valid.