Questions tagged [openjdk-11]

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.

203 questions
14
votes
3 answers

Travis CI couldn't install openjdk11

I have a problem with installing openjdk11 in Travis CI. This is the error I'm getting Installing openjdk11 $ export JAVA_HOME=~/openjdk11 $ export PATH="$JAVA_HOME/bin:$PATH" $ ~/bin/install-jdk.sh --target "/home/travis/openjdk11" --workspace…
Sushmitha M
  • 143
  • 6
13
votes
1 answer

Warning: use -cacerts option to access cacerts keystore

I am adding a cert to the Java keystore and I get the following warning. The command is successful. keytool -import -trustcacerts -keystore /usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts -storepass changeit -noprompt -alias my_root_ca.pem…
Vijay Kumar
  • 1,569
  • 1
  • 17
  • 36
12
votes
4 answers

How to execute AWS lambda with Open JDK 11+ as custom runtime?

AWS allows to create Lambda function with Java 8 (OpenJDK 8) as runtime. I need to create a simple function using Open JDK 11. Something like that: package example; import com.amazonaws.services.lambda.runtime.Context; import…
veben
  • 8,680
  • 11
  • 48
  • 57
10
votes
3 answers

What's the magic behind ScalaFX to make OpenJDK 9+ actually work?

Environment: OpenJDK 64-Bit Server VM Zulu12.2+3-CA (build 12.0.1+12, mixed mode, sharing) Scala 2.12.7 Windows 10 Professional, X86_64 IntelliJ IDEA 2019.1.3 (Ultimate Edition) I checked out the scalafx-hello-world from GitHub, built and ran it…
Hannes
  • 4,292
  • 7
  • 25
  • 48
9
votes
1 answer

Screenshot robot only captures a black screen on Debian

I am creating a screen capture using java.awt.Robot under Linux with OpenJDK 11. The result on Linux is a whole black image. The same code works on Ubuntu and Windows (using another file path of course). Any clue? public void captureScreen() throws…
Reto
  • 1,220
  • 15
  • 25
8
votes
1 answer

Production code + Test module-info = Unpossible?

I have a mock class with a trivial implementation of a service I provide from a module. I'm using OpenJDK 11.03, gradle 5.2.1 and IntelliJ 2019.2. In /main/code/myPackage/myService.java I have: package myPackage; class myService { public…
Mark Storer
  • 15,209
  • 2
  • 37
  • 75
6
votes
1 answer

How do I configure simple Java fontconfig.properties file for use on Linux

I am using a custom Java 11 runtime on custom linux hardware, the Java runtime was not built my me. But I have a problem my application requires access to a font and the runtime is not configured with any so I get this stacktrace Exception in thread…
Paul Taylor
  • 12,050
  • 34
  • 149
  • 295
6
votes
1 answer

package sun.awt does not exist

When compiling with ant, calls to sun.awt.AppContext work, however the same code compiled with IntelliJ fails using AdoptOpenJDK11. sun.awt.AppContext with Oracle JDK8 works with IntelliJ sun.awt.AppContext with AdoptOpenJDK11 does NOT work with…
tresf
  • 3,691
  • 3
  • 26
  • 78
6
votes
1 answer

Migrating java application from Java 8 to Java 11

Advance thanks, who are be going to help me. Story: till date my application is using JDK8, but right now I am migrating my application to Open JDK11 and using IVY as dependency manager and Ant as a build tool. Problem: I was facing compile-time…
Dupinder Singh
  • 4,165
  • 3
  • 19
  • 45
5
votes
2 answers

OpenJdk initial startup time very slow

I'm running openjdk 11.0.3 on a server. Whenever the server has been rebooted (every night): For the first initial launch of my Application, the users have to wait for 35 Seconds before the Application is even started. (Before the first…
runholen
  • 570
  • 8
  • 22
4
votes
1 answer

Why is OpenJDK Docker Container ignoring Memory Limits in Kubernetes?

I am running several Java Applications with the Docker image jboss/wildfly:20.0.1.Final on Kubernetes 1.19.3. Wildfly server is running in OpenJDK 11 so the jvm is supporting container memory limits (cgroups). If I set a memory limit this limit is…
Ralph
  • 3,451
  • 6
  • 36
  • 62
4
votes
1 answer

Java Flight Recorder - how to extract the values of a custom event field?

Java Flight Recorder is now a part of OpenJDK 11 and offers the usage of custom events. After a successful recording, I want to reuse the information within the events (especially my own custom events), but somehow I am unable to read the field…
Matécsa Andrea
  • 430
  • 5
  • 13
4
votes
1 answer

OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled (resin, Ubuntu, OpenJDK 11)

I've been running this old Caucho Resin (4.0.41) for many, many years on an Ubuntu box. I need to retire that server, so I'm trying to set up resin 4.0.64 on a new Ubuntu 18.04.4 server, and after a lot of poking and fiddling, it's launching, but…
Rick
  • 2,118
  • 2
  • 22
  • 26
4
votes
1 answer

Why is Java11 keeping java.util.zip.ZipFile$Source on heap?

Can somebody help me understand if what I see is deliberate, correct behaviour or some kind of leak in Java11? Let's take a stupid-simple hello world app: package com.example; public class HelloWorld { public static void main(String[] args)…
4
votes
1 answer

SpringBoot OAuth2 Sample Application

application.yml server: port: 8082 spring: security: oauth2: client: registration: custom-client: client-id: R2dpxQ3vPrtfgF72 client-secret: fDw7Mpkk5czHNuSRtmhGmAGL42CaxQB9 …
Popeye
  • 321
  • 3
  • 12
1
2 3
13 14