<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>This Eclipse problem affects some versions up to and including
2024-03. By coincidence the very next project I opened after email
below showed this similar issue. It also didn't go away after my
suggestions below, but has resolved itself. I did un-install
several extensions and restarted Eclipse but no idea if that is
connected.<br>
</p>
<p><img src="cid:part1.LoJ2i00g.LxXFZvyh@gmail.com" alt=""></p>
<p>Kind regards</p>
<p>Duncan<br>
</p>
<div class="moz-cite-prefix">On 14/05/2024 10:38, Martin Pernollet
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DeKS3gP0zN1W8v1S143UZtTWPc4EubP17jcZS85UCLNRiWXd9X2XxY2-9LlGmDW1go8QiyHrXxcRutDNPvx_nlMxgGBbcrjkDlm5O977KN0=@protonmail.com">
<pre class="moz-quote-pre" wrap="">Hi everyone,
Thank you Maurizio for giving a try.
I tried following Duncan hint but closing, wiping out target/classes and then reopening the project did not resolved the issue.
Michael, I only get a single JDK-22 on my machine.
Cheers,
Martin
Envoyé avec la messagerie sécurisée Proton Mail.
Le lundi 13 mai 2024 à 8:32 PM, Michael Hall <a class="moz-txt-link-rfc2396E" href="mailto:mik3hall@gmail.com"><mik3hall@gmail.com></a> a écrit :
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On May 13, 2024, at 11:58 AM, Duncan Gittins <a class="moz-txt-link-abbreviated" href="mailto:duncan.gittins@gmail.com">duncan.gittins@gmail.com</a> wrote:
I use Eclipse on Windows, this has similar issues where it periodically gets upset with missing JDK libraries such as java.util.HashMap. It is usually fixed by refresh project, close project, wipe the eclipse build directories manually and then re-open project.
Duncan
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Eclipse on MacOS has never had this issue for me that I remember and doesn’t on this.
I pasted the code into one of my projects and it shows no errors.
My release
Version: 2023-06 (4.28.0)
Build id: 20230608-1333
Installing that or a later release might be a fix.
There aren’t multiple jdk 22’s installed are there? I notice that Martin’s actually lists 22.0.1 as the JRE System Library. Mine only shows jdk-22 which I think is what I named it when I added it to available JRE’s. If he also has a OpenJDK 22 or OpenJDK 22.0.0 or something it could be a problem?
Mike
</pre>
</blockquote>
</blockquote>
</body>
</html>