Questions tagged [java-11]

Use this tag for questions specific to Java 11, which is version 11 of the Java platform, released on 25 September 2018. In most cases you should also specify the java tag.

JEPs targeted with this JDK release:

  • 181: Nest-Based Access Control
  • 309: Dynamic Class-File Constants
  • 315: Improve Aarch64 Intrinsics
  • 318: Epsilon: A No-Op Garbage Collector
  • 320: Remove the Java EE and CORBA Modules
  • 321: HTTP Client (Standard)
  • 323: Local-Variable Syntax for Lambda Parameters
  • 324: Key Agreement with Curve25519 and Curve448
  • 327: Unicode 10
  • 328: Flight Recorder
  • 329: ChaCha20 and Poly1305 Cryptographic Algorithms
  • 330: Launch Single-File Source-Code Programs
  • 331: Low-Overhead Heap Profiling
  • 332: Transport Layer Security (TLS) 1.3
  • 333: ZGC: A Scalable Low-Latency Garbage Collector    (Experimental)
  • 335: Deprecate the Nashorn JavaScript Engine
  • 336: Deprecate the Pack200 Tools and API

Early access builds are available for this release

Production-ready binaries under the GPL are available from Oracle; binaries from other vendors will follow shortly.

JDK 11 release Notes

JSR 384

2873 questions
1
vote
1 answer

Java 11 Standard Environment incompatible with ApiProxy?

I've got an app running in App Engine's Java 11 standard environment, where I want to make sure that Tasks are called on a particular version of the app (the one creating them). I can add the AppEngineRouting field to the task creation request to…
Zalán Meggyesi
  • 624
  • 5
  • 19
1
vote
1 answer

Getting a NPE on Java 11 jdeps tool when scanning Spring Boot .jar files

When I'm trying to find the Java modules that I need to link in my custom JRE, I do get an NPE from jdeps tool: marc$ jdeps --module-path $JAVA_HOME/jmods --print-module-deps --multi-release 11…
Marc Enschede
  • 828
  • 10
  • 16
1
vote
1 answer

Getting Failure when starting JFR on_vm_start after installing java 11

I have installed java version 11, after installing when I am checking java -version I am getting below error. C:\Users\lenovo>java -version Error occurred during initialization of VM Failure when starting JFR on_vm_start Please, someone, help on…
user3460330
  • 165
  • 3
  • 11
1
vote
1 answer

Getting an error having a slash in PathParameter String variable

I have a Java Spring Boot application with a couple of API REST endpoints. In one of my endpoints I am using as a search endpoint. My problem is calling this specific endpoint with a path variable containing a slash "/" in it will give me a HTTP 400…
dirbacke
  • 2,861
  • 21
  • 25
1
vote
1 answer

Vert.x JWT auth gives Forbidden access

SCENARIO I am calling this method inside the start() of my http server verticle: private void setupAuth(Router router) { // Secure access key var config = new JWTAuthOptions() .setKeyStore(new KeyStoreOptions() …
Alberto Miola
  • 4,643
  • 8
  • 35
  • 49
1
vote
3 answers

Is there any valid point upgrading Java 8 to Java 11?

I'm working in a company that has many projects in Java 8. Those projects are valued as old, and our team would like to upgrade the version. However, we need valid points in order to unlock the situation. Those projects are using Spring and…
1
vote
1 answer

Swing applications are slower on Java 11+ Linux

When upgrading a Java 8 Swing application to run on Java 11 we noticed the startup and UI interaction were roughly 2x slower. This is when running using XServer 1.15.1, Linux kernel 3.17.
Sammy Guergachi
  • 1,986
  • 4
  • 26
  • 52
1
vote
1 answer

Wildfly can't find persistence units to inject into CDI managed bean

I have an app working well in Java 8 and Wildfly 10. The driver for the Postgres database is the PostgreSQL JDBC Driver 42.2.8 After updating to Java 11 and Wildfly 17, the different persistence units from the persistence.xml are no longer found.…
teleco
  • 21
  • 5
1
vote
1 answer

Collectors toMap() - value mapper from Map.Entry to Map structure

I recently stumbled across the following issue. Basically I have a set of pairs which i want to transform to a map of maps . Below is the code snippet: Set > testSet = new HashSet<>( Arrays.asList( …
theAsker
  • 527
  • 3
  • 14
1
vote
2 answers

Liquibase maven plugin with JDK11 failing with ClassNotFoundException: XmlElement

I'm using Apache Maven 3.3.9 Java version: 11.0.5 And the latest version of liquibase-maven-plugin as follows: org.liquibase liquibase-maven-plugin
Elena
  • 501
  • 1
  • 6
  • 15
1
vote
0 answers

resttemplate.getforObject(url,pojo.class) getting null in java 11, but it fetch data in java 1.8

String url = "http://********"; rt = restTemplate.getForObject(url, pojoObj.getClass()); It works fine in 1.8, but when I change the compiler to Java 11 it throws an error: org.springframework.web.client.ResourceAccessException: I/O error on GET…
Surya Prakash
  • 105
  • 1
  • 1
  • 4
1
vote
2 answers

Is it possible to extract JDK system module and use it as a standalone application module/JAR file?

Issue I am using AdoptOpenJDK's JRE 11* to run my application. This application uses JavaFX which needs JDK's system module called jdk.unsupported.desktop. This module is not present in mentioned JRE. I was wondering if it is possible to extract…
M. Twarog
  • 2,418
  • 3
  • 21
  • 39
1
vote
1 answer

Is OpenJDK 11 or AdoptOpenJDK same stable like Oracle JDK

since Oracle JDK is need to be paid for production environment , i will to know if OpenJDK/AdoptOpenJDK give me the same stablity too. I read that Oracle is developing OpenJDk, they for i would suggest that OpenJDK 11 is the same stable like Oracle…
beard black
  • 41
  • 1
  • 5
1
vote
0 answers

Running a Java 11.02 JavaFX .jar application produces strange output

I've been trying to create and run a .jar file that I can run my JavaFX application on any computer running the Java runtime enviroment. For Java i'm running sdk version 11.02 and for JavaFX i'm running the 11.02 jdk. My IDE is IntellJ IDEA. I've…
SneakyShrike
  • 723
  • 1
  • 10
  • 31
1
vote
1 answer

How to resolve the HTTP:503 service unavailable error, using jetty drivers with java11?

I need to start the local server using jetty drivers with java 11. I can start the server and access it with Java8, but with java 11 when I use curl command to check if the server is accessible it returns following: $ curl…
C.k.
  • 93
  • 2
  • 13
1 2 3
99
100