Replies: 4 comments 8 replies
|
Can you attach a minimal reproducer? The code in question should be in JDT debug, It seems to complain that compliance (JLS) version is higher than the JRE version of the launch. Might also be worth checking the installed JREs preferences page, maybe the 21 JDK/JRE is misconfigured. |
Finding a culprit will be hard : we use Oomph and perhaps a set of plugins conflict with one another. But I can take some time to debug my instance of Eclipse using the JDT Debug dev environment.
This part is what show the "error about bytecode compliance", but where is the part that says "create a junit launch with this JRE" ? Can m2e contribute to these selected JRE ? (I say that because it configured the VM properties based on my pom file).
I've seen two cases:
|
Change the pom to use Java 25 and see what happens. |
|
Hello, That's a feature recently implemented in m2e which forgot toolchains in the process: eclipse-m2e/m2e-core#2127 You use enforcer to force a minimal version (Java 17) using maven-enforcer-plugin but you want to compile with Java 25: that's means either you use Java 25 to build and should enforce Java 25, either you use a toolchains which is not supported. You can match the valid enforcer for Eclipse only assuming you use |






Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am trying to figure what's gone wrong in my Eclipse 2025-09: my project are all using Java 21 however, when I try to run a JUnit test, Eclipse pick up Java 17: it warns me about "class incompatibility", select the wrong JDK (17):
This happens whenever I want to run a unit test.
And the default workspace JRE is set to java 21
Note: I can not use 2025-12 due to #4687
And I did have the same issue with eclipse-m2e/m2e-core#2091 (comment) but I though it was due to a conflict (now resolved) between EclEmma and m2e.
All reactions