Jaspersoft Studio is using AdoptOpenJDK 11, why is the JRE for Java 1.8?

0

I have Jaspersoft Studio 6.18.1 community edition installed.

I also installed Adoptium JDK 11.0.13+8.

In "Jaspersoft Studio.ini", I see that indeed it is setup to use features/jre.win32.win32.x86_64.feature_11.0.8/adoptopenjdk_jre/bin.

Why then does Jaspersoft Studio auto-populates a new project with the JavaSE-1.8 JRE System Library and how do I get it to use Java 11 JRE libraries?

nikita_4's picture
Joined: Apr 30 2020 - 11:01am
Last seen: 1 month 2 weeks ago

2 Answers:

0

CE Studio 6.18.1 does have Java 11 support but it still has Java 8 support.  I think this is a matter of changing the java execution environment to point to openjdk 11 whilst still maintaining the compiler compliance level to be 1.8.

In Studio, check Windows -> Preferences -> Java  

compiler compliance level  set to 1.8 (without --release option) 
generated .class files compatibility set to 1.8

If you have "Installed JREs" option, add / select the Adopt OpenJDK 11 and  "Execution Environment" for both JavaSE-8 and JavaSE-11 to use OpenJDK 11

vchiem's picture
24011
Joined: May 1 2017 - 5:33pm
Last seen: 3 hours 17 min ago
0

What about the JRE System Library that is included in a new project? It says it's JavaSE-1.8. Do I need to change it? I tried to change it to JavaSE-11, but if I try to edit it I get a "Wizart page creation failed" error (Reason: Plug-in org.eclipse.jdt.debug.ui was unable to load class org.eclipse.jdt.internal.debug.ui.jres.JREContainerWizardPage).

nikita_4's picture
Joined: Apr 30 2020 - 11:01am
Last seen: 1 month 2 weeks ago
Feedback