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.

251 questions
32
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
  • 2,439
  • 2
  • 32
  • 51
18
votes
3 answers

JDK 11 Generics Issue when using Set.of

I am unable to understand the below issue for type safety when using JDK 11. Can anyone explain the reason for not getting a compilation error when I am directly passing the Set.of in the argument: public static void main(String[] args) { var…
Alok Dubey
  • 419
  • 4
  • 13
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
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
  • 19,637
  • 14
  • 60
  • 80
12
votes
4 answers

How to compile OpenJDK 11 on an M1 Macbook?

I want to compile the OpenJDK 11 for an M1 MacBook. First, I tried to use the Zulu JDK, but I did not find out a way to compile it. Then, I tried to try compile OpenJDK on an M1, but this reports an error when I run sh configure. The error…
rainbowecho
  • 145
  • 1
  • 1
  • 9
12
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
  • 7,103
  • 6
  • 40
  • 101
11
votes
4 answers

InetAddress.getLocalHost().getHostName() different behavior between JDK 11 and JDK 8

I wrote a simple java program to basically run: System.out.println(InetAddress.getLocalHost().getHostName()); If I compile it and run it on Java 1.7.231 or 1.8.221 On RHEL 7.7, it returns the FQDN (computer.domain.com), but ON THE SAME SERVER,…
Andy Knipp
  • 133
  • 6
11
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
  • 5,002
  • 8
  • 31
  • 60
10
votes
8 answers

Springboot HttpMessageNotWritableException: No converter for [...] with preset Content-Type 'null']

I try create web API with XML and JSON with Springboot 2.2.4.RELEASE + JDK11 and java 8 compilation. my model: @XmlRootElement public class DataModel { private List columns; private List rows; public List
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
10
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,305
  • 1
  • 18
  • 32
9
votes
1 answer

Docker Unable to find user: no matching entries in passwd file for OpenJdk11

I'm trying to build and run the image with a non-root user and keep getting the error: "unable to find user test: no matching entries in passwd file." Here's what my Docker file looks like: FROM openjdk:11-jre-slim RUN addgroup --system test RUN…
zhaider
  • 595
  • 2
  • 9
  • 26
9
votes
2 answers

head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory in Debian Image Java 11

I have written a dockerfile for creating selenium image with debian base image While I am installing JDK11,I am seeing these errors. RUN apt-get upgrade RUN apt-get update RUN apt-get -y install apt-transport-https curl RUN apt-get -qqy…
9
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,672
  • 3
  • 42
  • 80
8
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
  • 13,411
  • 42
  • 184
  • 351
8
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)…
tporeba
  • 867
  • 10
  • 23
1
2 3
16 17