Open JDK 11 is the open-source reference implementation of version 11 of the Java SE Platform as specified by by JSR 384 in the Java Community Process.
Questions tagged [openjdk-11]
251 questions
4
votes
1 answer
How to use Jasper Reports in IntelliJ IDEA with OpenJDK11
So I've been using Jasper Reports on JDK8 (Netbeans 11.1 & JavaFX 2) and everything was simple. Now I am migrating from JDK8 to OpenJDK11 with gradle (IntelliJ IDEA & JavaFX 14) and I am stuck with Jasper Reports.
I tried to add the dependency…

Abderaouf Boucenna
- 199
- 1
- 9
4
votes
1 answer
OpenJDK MaxRAMPercentage on a machine with very large amount of memory
When running OpenJDK 11 on a machine with 60GB of memory (and more), the
MaxRAMPercentage only allows me to allocate up to around 30GB.
This works correctly:
>~# java -XX:MaxRAMPercentage=10 -XshowSettings:vm -version
VM settings:
Max. Heap…

daphshez
- 9,272
- 11
- 47
- 65
4
votes
0 answers
java.lang.module.ResolutionException
I'm trying to compile and run a modular Java project with open-jdk-11, under Eclipse.
Main.java:
package aubin;
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.Unmarshaller;
import…

Aubin
- 14,617
- 9
- 61
- 84
4
votes
1 answer
Custom JRE produced by jlink has a large size for a minimal jre
I am trying to provide a minimal JRE for a slim Docker image. With jlink 11.0.4, which comes with open-jdk-11 on Ubuntu, the image built with this custom JRE is actually larger than what it would be with a default JRE. I think this is due to a very…

albihasani94
- 41
- 5
4
votes
2 answers
This server requires an execution environment of JavaSE-1.8, but no valid JRE was found. Caution is advised
I use Eclipse 4.9 twice. one with jdk8 and one with openJDK11.
With both I want to integrate Wildfly 14 Runtime via "Window -> Preferences -> Server -> Runtime Environment".
The following error occurs when I select "OpenJDK-11.0.2" under Alternate…

user3804191
- 41
- 1
- 6
4
votes
4 answers
dependency not resolved: DocumentBuilderFactory class need dependency of javax.xml.parsers in openJDK 11
Story:
I was using JDK8 and IVY as dependency manager with ANT Builder. everything was fine. My DocumentBuilderFactory class able to find javax.xml.parsers dependency.
Issue:
Now I am shifted to Open JDK11, Now DocumentBuilderFactory not able to…

Dupinder Singh
- 7,175
- 6
- 37
- 61
3
votes
1 answer
OpenJDK versioning
The context: I want to be sure that Java installed on our system is not affected by CVE-2022-21449.
java -version gives
openjdk version "11.0.7" 2020-04-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM…

John Donn
- 1,718
- 2
- 19
- 45
3
votes
1 answer
Java 7 to Java 11 migration blocking issue - Expecting a stackmap frame at branch target 91
I'm migrating an app from Jdk 7 to Jdk 11, everything was going fine, the build was successful, but when i tried to run the migrated app (jdk 11) version, I faced the following error.
Caused by: java.lang .VerifyError: Expecting a stackmap frame…

Soufiane Rabii
- 427
- 2
- 8
- 29
3
votes
1 answer
Does OpenJDK 11 support Java Flight Recorder?
Following this post :
jfr is supported natively in openjdk 11
and it is confirmed by the features list of OpenJDK 11:
328: Flight Recorder
However, from this DZone article, about using JFR-linked option -XX:+UnlockCommercialFeatures:
OpenJDK…

ThCollignon
- 976
- 3
- 14
- 31
3
votes
1 answer
Alpine with jdk11 as base docker image
I have a base Dockerfile used by a bunch of services, looking like this:
FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-alpine-slim
There were some security fixes for Linux Alpine, and I'd like to include them in my base image. Looking for a new image…

Georgian
- 8,795
- 8
- 46
- 87
3
votes
0 answers
How to set Entity Expansion Limit in Java JDK 11
I have the following code in order to set the Entity Expansion limit in Java with JDK8:
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
…

Omered
- 81
- 5
3
votes
1 answer
How do you limit non-heap size on Open JDK 11
we are running openjdk:11-slim based docker containers in AWS. We usually use two instance types. One with 1G, the other with 2G of available memory. On the 1G instances, I have started to constraint the heap size using these args:
-XX:MaxRAM=1g…

reikje
- 2,850
- 2
- 24
- 44
3
votes
3 answers
Adding module export to mvn test execution runtime
Getting this error during tests:
class javax.crypto.JceSecurity (in unnamed module @0x45da40ad) cannot access class jdk.internal.util.StaticProperty (in module java.base) because module java.base does not export jdk.internal.util to unnamed module…

alex
- 227
- 3
- 11
3
votes
1 answer
spring boot 2 actuator jvm.gc.memory.allocated Metric
i'm using spring boot 2.2.5 and monitoring my application metrics via spring boot actuator and Grafana.
my application is packaged with Docker(OpenJdk11) and configured with 4GB of memory
i'm having long gc pauses that get around 1-2 seconds, and it…

Elia Rohana
- 326
- 3
- 16
3
votes
1 answer
How can we overwrite java.base/java.lang.Integer from OpenJDK 11 using --patch-module?
In the JDK-8, we could compile our changed java.lang classes and reconstruct the rt.jar. Then we could overwrite java.lang classfiles by augmenting the bootclasspath with -Xbootclasspath:/rt.jar. Doing this, we could for example make…

MGG
- 43
- 7