Inquiry About Support for Java 21 [message #1864819] |
Thu, 11 April 2024 01:12  |
Eclipse User |
|
|
|
We have been using Equinox as the OSGi implementation in our product. We are currently in the process of updating our product to be compatible with Java 21, which involves compiling our code with the source version set to 21. This change understandably introduces the following requirement into our bundles' manifests:
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=21))"
After updating to the latest Equinox version, upon attempting to install features in our product during the build process, we've encountered an issue where the installation fails due to the unavailability of this capability. A programmatic inspection of the available capabilities revealed support up to Java SE 17 only, as shown below:
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0.0,1.1.0,1.2.0,1.3.0,1.4.0,1.5.0,1.6.0,1.7.0,1.8.0,9.0.0,10.0.0,11.0.0,12.0.0,13.0.0,14.0.0,15.0.0,16.0.0,17.0.0"
Based on this, we assume that the latest version of Equinox does not yet support Java SE 21. We would greatly appreciate any insights or confirmations regarding this assumption. Additionally, if Equinox does not currently support Java 21, is there a projected timeline for when support might be introduced? Ensuring compatibility with Java 21 is critical for our product's development strategy, and any information or guidance on this matter would be incredibly helpful.
Thank you for your support and looking forward to your guidance.
|
|
|
|
|
|
|
|
|
Re: Inquiry About Support for Java 21 [message #1864941 is a reply to message #1864887] |
Sat, 20 April 2024 12:19  |
Eclipse User |
|
|
|
I finally figured it out. It was due to the outdated dependency of org.eclipse.equinox.p2.publisher component in the p2 maven plugin we created to work with p2 repository.
JREAction.java is supposed to actually generate the a.jre.javase IU and it was by default using Java 17. But with https://github.com/eclipse-equinox/p2/pull/462, it is now properly generating the IU for the current Java version and Java 21 IU is now properly generated.
Thank you for the support and pointers provided.
[Updated on: Sat, 20 April 2024 13:02] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04336 seconds