#1 2024-04-19 09:36:33

Reedu
Member
Registered: 2024-04-19

ReportServer nad JRE 21

Hello
I've got question about java version which are supported.

In documentation with manual instalation (https://reportserver.net/en/guides/conf … tallation/) we cen find just a statement  that we can use "version 11 or newer.",  but in best practices it's limited to 11 and 17 (https://reportserver.net/en/tutorials/i … -practice/)

I've just run a simple container in docker based on jre21 and RS looked fine. Or I should just say it can be accessed.
So maybe documentation hasn't changed in those points or i've just got pure luck that i've didn't encountered any problems.

Anybody can clear this topic ? smile

Offline

#2 2024-04-23 12:10:25

eduardo
Administrator
Registered: 2016-11-01
Website

Re: ReportServer nad JRE 21

Hi Reedu,

officially, our supported Java versions include 11 and 17. While Java 21, released in September 2023, has not undergone extensive testing, it is expected to function properly, given the absence of any apparent breaking changes between these versions.

If it works in your case, and ReportServer starts with no errors, and your reports are working correctly, can you pls let us know? Pls don't forget the necessary java options: https://reportserver.net/en/tutorials/i … ce/#tomcat

JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.net=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.invoke=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.ref=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/sun.reflect.generics.repository=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS -Djavax.net.ssl.trustStoreType=JKS"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS -Dfile.encoding=UTF-8"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS -Djava.awt.headless=true"

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB