Why is the Java 11 base Docker image so large? (openjdk:11-jre-slim)

Java 11 is announced to be the most recent LTS version. So, we’re trying to start new services based on this Java version. However, the base Docker image for Java 11 is much larger than the equivalent for Java 8: openjdk:8-jre-alpine: 84 MB openjdk:11-jre-slim: 283 MB (I’m considering only the official OpenJDK and the most … Read more

How to install JDK 11 under Ubuntu?

So Java 11 is out. Does anybody know how to install it (OpenJDK from Oracle) from the command line? I would like to see something like it was before for Oracle Java 10: sudo add-apt-repository ppa:linuxuprising/java sudo apt-get update sudo apt-get install oracle-java10-installer P. S. In the similar question proposed instruction: sudo apt-get install openjdk-11-jdk … Read more

Java 11 package javax.xml.bind does not exist [duplicate]

This question already has answers here: How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException (40 answers) Replacements for deprecated JPMS modules with Java EE APIs (11 answers) Closed 3 years ago. I’m trying to deserialize XML data into a Java content tree using JAXB, validating the XML data as it is unmarshalled: try { JAXBContext context = JAXBContext.newInstance(“com.acme.foo”); … Read more

Where is JRE 11? [duplicate]

The whole structure with Java 11 has changed. Java is now a modular platform, where you can create your own “JRE” distribution with specifically the modules that you need to run your application. The release notes at https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html have the following sentence: In this release, the JRE or Server JRE is no longer offered. Only … Read more