Replies: 3 comments 9 replies
-
If you want to run with Java 21, then you need a Java 21 JVM (either as build vm or in the toolchains). |
Beta Was this translation helpful? Give feedback.
-
I didn't follow in detail and I'm not sure which JRE you are using, but in Oomph I specify
These are available: The |
Beta Was this translation helpful? Give feedback.
-
Again, not reading the full details, I suggested This shows an example: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We're using the headless tycho build following the layout described here:
https://tycho.eclipseprojects.io/doc/latest/StructuredBuild.html
Our tycho build only generates an executable (Because the target platform completely defines the content), so our target platform file just looks like this:
Up to now we are using Java-17 as both execution environment and compile environment, so we are currently have the following places where we refer to the JRE:
Now we want to switch to use still Java-17 as compile environment but Java-21 as execution environment (Very similar to the current Eclipse product seems to be build), so I adjusted all these places to refer to Java-21 instead of Java-17 (But still use Java-17 to execute the tycho build):
With these setting the tycho build fails:
After some wondering about the error I found out that I could solve the issue by two different approaches:
a) Either I change the
executionEnvironment
of thetarget-platform-configuration
execution to<executionEnvironment>JavaSE-17</executionEnvironment>
(but no other JRE setting!)b) Or instead I use Java-21 to execute the tycho build (But no other JRE setting!).
This surprises me a bit: I would have expected that
<executionEnvironment>JavaSE-21</executionEnvironment>
describes the execution environment of the product (Not the compile environment), but it doesn't seem to behave that way.Why is the build failing without one of these workarounds applied?
Beta Was this translation helpful? Give feedback.
All reactions