Questions tagged [java-14]

Reference Implementation of version 14 of the Java SE Platform, as specified by JSR 389 in the Java Community Process. Use this tag for questions specific to Java 14, which is version 14 of the Java platform, released on 17 March 2020. In most cases you should also specify the java tag.

Version 14 of the Java programming language.

The reference implementation of Java 14 reached General Availability on 17 March 2020.

The JDK/14 production-ready binaries for Linux and Windows.

New features and improvements:

  • Pattern Matching for instanceof (Preview)
  • Packaging Tool (Incubator)
  • NUMA-Aware Memory Allocation for G1
  • JFR Event Streaming
  • Non-Volatile Mapped Byte Buffers
  • Helpful NullPointerExceptions
  • Records (Preview)
  • Switch Expressions (Standard)
  • Deprecate the Solaris and SPARC Ports
  • Remove the Concurrent Mark Sweep (CMS) Garbage Collector
  • ZGC on macOS
  • ZGC on Windows
  • Deprecate the ParallelScavenge + SerialOld GC Combination
  • Remove the Pack200 Tools and API
  • Text Blocks (Second Preview)
  • Foreign-Memory Access API (Incubator)

Specified by JSR 389 in the Java Community Process.

192 questions
0
votes
1 answer

Could not find ApacheJmeter_core.jar

Getting the below response while running jmeter.server Batch file: Could not find ApacheJmeter_core.jar ... what to do now? I am using Java version-14
0
votes
2 answers

Getting unsupported major.minor version error when packaging tornadofx app

I've been developing a Tornadofx app for a couple months now. It runs just fine within the IDE (intellij ultimate, win 10), but now that I need to create an actual executable jar for other people to run it, I cannot seem to get it to work. I'm…
b_camphart
  • 76
  • 1
  • 5
0
votes
1 answer

Java symbol not in system preferences anymore, but still installed

I have to handle a confusing issue concerning the installation of Java on my mac: If I go to system preferences, there is no Java symbol anymore: But if I type java -version in the terminal, I get java version "14" 2020-03-17 Java(TM) SE Runtime…
Xarrus
  • 75
  • 2
  • 7
-1
votes
1 answer

How can I correctly use the stream map() in this use case involving the conversion of an entity class instance into a DTO instance?

I am working on a Spring Boot application and I am trying to use a more modern (Java 8+ constructs) but I am finding some difficulties trying to implement the following changes to my existing code. I have the following service…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
-1
votes
1 answer

Base64 Decoding issue with Arabic content in java

I have a spring boot application (2.2.6.RELEASE). In my application I need to decode a base64 string into a xml data. This xml data contains Arabic contents. I am using "apache common" (version 4.5.6) to decode the base64 string. It is successfully…
Vishnu Viswambharan
  • 133
  • 1
  • 1
  • 18
-1
votes
1 answer

Playing Media/AudioClip in JavaFX with Java14

I am trying to play a sound in a JavaFX application but am failing to do so because of this error: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at…
peach
  • 657
  • 5
  • 26
-1
votes
1 answer

Can't use 'java' command in IntelliJ terminal when trying to run my main in it

I'm trying to run my java program using the java and javac command, but it returns this in the terminal: 'java' is not recognized as an internal or external command, operable program or batch file. I'm currently using IntelliJ IDEA 2020.2 and have…
EliasV
  • 1
  • 2
-1
votes
1 answer

How can I replace throw exception with a System.out.print() in switch statement default case

Here I have a simple class to perform calculator operations. Calculator.java private final ArrayList values; private final String operation; public Calculator(ArrayList values, String operation) { this.values =…
-2
votes
1 answer

The eclipse IDE doesn't import its WebDriver interface, as i have configured the BuildPath adding its required JAR & driver files?

Whenever I write a WebDriver, it doesn't import the packages as defined. Instead, it ask to create an interface called WebDriver. I'm using the JDK 14 and Eclipse 4.16.0. package package1; import org.openqa.selenium.WebDriver; public class MyClass…
Saa Sh
  • 1
-3
votes
2 answers

Export JavaFX project as an executable file that opens with two clicks

I want to export my JavaFX project as an executable file that starts with two clicks. I do not want my users to have to configure or download anything to run the application. Please describe everything step by step. Use of: Java SE…
Jasminaa
  • 1
  • 3
-5
votes
1 answer

Java Record Data Type Doesn't Work For Network Communication

I thought the new Java Record data type in Java 14 should be suitable for data crossing the network because the data shouldn't change in the process which is the main feature of the record data type - immutable. I use the data type in RSocket. On…
vic
  • 2,548
  • 9
  • 44
  • 74
1 2 3
12
13