SWT for next release (4.39 aka 2026-03) will require Java 21 to run #2840
jonahgraham
started this conversation in
General
Replies: 1 comment 2 replies
-
|
I ran into the first warning today. It was a breeze to fix thanks to you, @jonahgraham, proactively communicating this 🚀
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The SWT master branch has just had #2824 merged which changes BREE to Java 21 for all the SWT bundles.
SWT Devs
For SWT devs, this should mostly be an easy update, but there is one step that you need to take as the Snippets
.classpathfile needs a manual update:If you have a warning like "The JRE container on the classpath is not a perfect match to the 'JavaSE-21' execution environment" (as pictured below) then you need to edit the
.classpathmanually.You can do the edit manually, or better still press "Update the classpath setting" in the Overview page of the manifest editor:
The project was not built due to "release 21 is not found in the system"
Another warning/error you may hit is The project was not built due to "release 21 is not found in the system". Fix the problem, then try refreshing this project and building it since it may be inconsistent which seems to be this JDT issue: eclipse-jdt/eclipse.jdt.core#2509 - sometimes while I was developing this change and swapping branches I would see it.
The method threadId() is undefined for the type Thread
Once I finish cleaning up the warnings in SWT from the move to Java 21, if you have your snippets still configured as Java17 you will see the error The method threadId() is undefined for the type Thread for SnippetExplorer:
Fix this by making sure classpath is Java21 for the snippets.
Beta Was this translation helpful? Give feedback.
All reactions