Questions tagged [java-13]

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

This is the Reference Implementation of version 13 of the Java SE Platform, as specified by JSR 388 in the Java Community Process.

105 questions
3
votes
1 answer

SimpleDateFormat causing unparseable error

I kinda used the following source to create my own sdf-pattern: https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/text/SimpleDateFormat.html Unfortunately SimpleDateFormat mFormatter = new SimpleDateFormat("EEE, dd MMM yyyy…
Taka
  • 131
  • 1
  • 8
3
votes
3 answers

Is there a global setting in the Java Compiler to disable deprecation for String.formatted()?

The method String.formatted() is a new feature in Java 13 introduced together with text blocks and can be used instead of String.format(templateString, replacement1, replacement2, ...). The compiler issues a jarring warning when using this method…
kossmoboleat
  • 1,841
  • 1
  • 19
  • 36
3
votes
2 answers

Generic "Link Error" while working with Netbeans forms

I have inherited a NetBeans project that I must make some changes too. I do not have a ton of experience in NetBeans and I have an issue with the app. The app is basically an attendance system that uses MySQL to store and retrieve data. My issue…
Steve Weaver
  • 342
  • 1
  • 4
  • 18
3
votes
2 answers

Run a Java application with JDK 13 on NetBeans

I work with Netbeans 11.1 and with JDK 8, but I want to try some feature of JDK 13 and I encountered difficulties. After installing JDK 13, I added the platform in Netbeans in Tools -> Java Platforms, and in the project's properties I indicated that…
Alberto
  • 339
  • 4
  • 12
3
votes
1 answer

Running Gradle with Java8 and compile Java13 with fork

I want to run Gradle with the default system JRE, in my case Java8. And in the build I want to use a specific JDK 13 with the option.fork=true compileJava { options.encoding = 'UTF-8' sourceCompatibility = 13 targetCompatibility = 13 …
fbenoit
  • 3,220
  • 6
  • 21
  • 32
3
votes
2 answers

java13 and Eclipse strange behaviour

I'm trying to use Java 13 with Eclipse on Linux. I'm trying to create a 'portable' java+eclipse folder, that can be moved between machines. I have downloaded and unzipped Java 13 from …
Marco Servetto
  • 684
  • 1
  • 5
  • 14
3
votes
1 answer

How Can I Use JLink with AppCDS

We are using JLink to create our own jre. While trying to port to java 13 I wanted to take advantage of the new AppCDS changes. The first error I'm hitting is that jlink does not copy over the classes.jsa. If I manually copy over classes.jsa, I get…
cstack
  • 395
  • 1
  • 15
2
votes
0 answers

JavaFX runtime components are missing whenrunning an exported jar

I created a project in eclipse and want to run my exported .jar file on an other machine. When I try to do so using "java -jar myfile.jar", I get the following message: Error: JavaFX runtime components are missing, and are required to run this…
user4402088
  • 57
  • 1
  • 6
2
votes
2 answers

Java 13: Why are javaFX runtime components missing?

Error Message: Error: JavaFX runtime components are missing, and are required to run this application LOOK HERE: project structure photo I have downloaded the javafx extentions for the project as well as the jar file and attached it, the program…
Kevin
  • 19
  • 6
2
votes
1 answer

How can I set the ModuleMainClass attribute of a JPMS module using Gradle?

I'm using Gradle (6.0.1) with the moduleplugin to build an application out of JPMS modules using JDK 13. However, even with the application plugin applied & its mainClassName set it does not set the ModuleMainClass attribute in module-info.class, so…
Robert Elliot
  • 1,372
  • 13
  • 20
2
votes
2 answers

How to use Java 13 features in Eclipse?

Is there a way to get Eclipse to understand Java 13 features, such as text blocks? Eclipse reports errors for the following code: class Main { private String text = """ first line second line third line …
ernest_k
  • 44,416
  • 5
  • 53
  • 99
2
votes
3 answers

How the intents processed in a Text block(Java 13)

I just tried the new text block feature in Java 13 and encountered a small issue. I have read this article from Jaxcenter. The closing triple quotation marks will affect the format. String query = """ select firstName, …
Hantsy
  • 8,006
  • 7
  • 64
  • 109
1
vote
2 answers

Switch expressions: Why does Java consider my break - String lines not to be statements?

Trying to understand switch expression and came up with the following code. In fact I get "not a statement" error for all "break - String" combinations. What am I doing wrong? String i = switch(value) { case 0: break…
vdmclcv
  • 135
  • 12
1
vote
2 answers

Maven invalid target release: 13

I'm using Maven in Eclipse and i want to run my project with Java13. Every time i build my project i get the following error message: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project…
pzsette
  • 286
  • 1
  • 5
  • 19
1
vote
1 answer

xsl version 2.0 in JDK 13?

I'm trying to use XSL Version 2.0 with openJDK 13 & apache FOP. Despite having coded the following in the Stylesheet:
Dave The Dane
  • 650
  • 1
  • 7
  • 18