Questions tagged [java-12]

Use this tag for questions specific to Java 12, which is version 12 of the Java platform, released on 19 March 2019. In most cases you should also specify the java tag.

This release is the Reference Implementation of version 12 of the Java SE Platform, as specified by JSR 386 in the Java Community Process.

The JDK/12 production-ready binaries are available for Linux and Windows.

Initial JEPs targetted with this are

Java 12 Final Release Specification

115 questions
1
vote
0 answers

Error while installing java from tar.gz file

I am trying to install java version SE12 form respective tar.gz file. I followed this thread right here, How to set Oracle's Java as the default Java in Ubuntu? (@Barracuda's answer). When I am trying to execute the following command: sudo…
1
vote
0 answers

Java Virtual Machine crashes without error log on NixOS Linux

I run 30 java applications in parallel on a server. Some applications crash during the run without any error log. Gernerated messages of the application are stored in a file (commandlineOutput.txt). But these files do not contain any information…
UweJ
  • 447
  • 3
  • 10
1
vote
1 answer

What is the difference between GC.run and GC.run_finalization?

Could someone explain me (best would be to lead to documentation) what is the difference between the two: jcmd ${jpid} GC.run_finalization jcmd ${jpid} GC.run As in the application (springboot + tomcat) after a test (using gatling) much memory…
Maciej Wakuła
  • 125
  • 1
  • 9
1
vote
1 answer

Avoiding unnamed lambda parameter

I have an application that needs to manage a priority queue of some items, where the priorities themselves can actually be fractional quantities (like 2.4 or 0.3). Smaller is better, as with usual integer priorities. The following one-liner…
Jason
  • 2,495
  • 4
  • 26
  • 37
1
vote
0 answers

Java get remainder versus bit shift

As we all know that there is a treat to get remainder for: m = Remainder n = The number d = The divisor, a positive integer m = n & ( d - 1 ) It works for d = 2^k (k is a positive integer) For JDK 12, I use jmh to test the…
Hash Jang
  • 599
  • 3
  • 11
1
vote
1 answer

Trouble installing OpenJDK 12 into Eclipse 2019-12

I have a new laptop and installed Eclipse 2019-12. I also downloaded OpenJDK12 (12.0.1) because I have a project which needs that version. I have unzipped the jdk into C:\Program Files\java\jdk-12.0.1. When I try to add the version to Eclipse,…
Michael
  • 141
  • 2
  • 12
1
vote
0 answers

JavaFX Location is required, NullPointer with IntelliJ

So I know similar questions have been asked multiple times, but I've tried about everything I found, yet I just can't seem to figure this out. Im trying to make this simple JavaFX sample work: https://openjfx.io/openjfx-docs/#install-javafx I'm…
Netii
  • 11
  • 2
1
vote
6 answers

Error occurred during initialization of boot layer java.lang.module.FindException executing Selenium tests using TestNG and Java 12 through Eclipse

ErrorOccuredDuringInitializationofbootlayer I keep getting this error when I run my test: Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module descriptor for …
1
vote
1 answer

error: module not found: org.lwjgl.natives in multi-module gradle build

I'm getting the following errors trying to run a multi-module gradle build: /Users/ashley/Personal/juggernaut/display/src/main/java/module-info.java:2: error: module not found: org.lwjgl.natives requires org.lwjgl.natives; …
junglie85
  • 1,243
  • 10
  • 30
1
vote
0 answers

javac package not found or does not exist

I have a project written in Java 12 (fairly new to java9+ and using modules) and I want to use jlink to create a custom runtime image. I also want to use apache.commons.cli as a 3rd party library for my project. How can I make use of automatic…
npabs18
  • 167
  • 2
  • 10
1
vote
0 answers

Selenium 3.141.59 not working with JDK 12.0.2 on Eclipse

I have installed jdk-12.0.2 64bit on Windows 7 64bit Service Pack 1, I am using Eclipse IDE for Enterprise Java Developers. Version: 2019-06 (4.12.0) Build id:20190614-1200. I created a new java project having a new package and a new java…
Ziaullah
  • 257
  • 6
  • 10
1
vote
2 answers

Why is describeConstable an optional?

Under what circumstance would someEnum.describeConstable() fail to return an EnumDesc? i.e. it would return an empty Optional.
William Entriken
  • 37,208
  • 23
  • 149
  • 195
1
vote
2 answers

Eclipse 2019-03 support for Tomcat 9

I have installed the latest eclipse version 2019-03 with support to JDK 12. The Servers View was not available. So I installed the plugin Eclipse JST Server Adapters Once installed, I am not able to create Tomcat 9.0 Server. Tomcat 8.0 is the latest…
Reema
  • 587
  • 3
  • 12
  • 37
1
vote
1 answer

Integration-Test Phase Missing in Java 12

I was tasked to update a project with Maven 3.0 / Java 8 to Maven 3.6 / Java 12. To my best knowledge I did just that, changing all kinds of dependencies. Now when running the build the integration-test phase seems to be missing. For example, the…
Stefan S.
  • 3,950
  • 5
  • 25
  • 77
1
vote
0 answers

How to convert JSON to a string with escape characters

I am new to JMeter java and Minidev. I am working on this existing module where I have to use minidev libraries I need to convert a JSON form non-indented format to a string format in Jmeter. The API requires a String representation of the JSON due…
I 2
  • 13
  • 4