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
0
votes
1 answer

Trouble in compiling classes with dependency

Under the root directory, there are two directories named src and classes. I have two java files named Master and Slave. Slave file is under the directory src/com/example/web and compiled master file is under the directory classes/com/example/model.…
Naveen
  • 38
  • 8
0
votes
3 answers

Kafka unable to resolve javax/xml/bind/* ClassNotFoundExeption for java 12?

I'm learning kafka and just downloaded kafka 0.10.1 (as it's the requirement of my project) and whenever i run this command line code bin/kafka-server-start.sh config/server.properties i get this error java.lang.NoClassDefFoundError:…
user11311618
0
votes
1 answer

Different Project SDK and Language Level

I have recently downloaded IntelliJ IDEA (2018 version) and Java JDK 12. When I was configuring IntelliJ with JDK 12, the Project Language level is stuck at Java 9. Hence, I cannot use the new features in Java 12. I have searched about this issue…
Nishant Jalan
  • 844
  • 9
  • 20
0
votes
2 answers

Return generic value from switch expression in Java-12

I am wondering if there is an option to return a generic type from a Java 12 switch expression. The basic code can look like that: boolean result = switch(ternaryBool) { case TRUE -> true; case FALSE -> false; default -> throw new…
-1
votes
1 answer

Not able to create List of String object in java12

List al = Arrays.asList("ABC", "XYZ"); This code works fine in Java11 but when I try this in Java12, it gives an error Cannot cast from List to ArrayList Any hint what I am missing? Thanks for the help.
Saili
  • 7
  • 2
-1
votes
1 answer

How do i import javafx in eclipse?

How do I import javafx in eclipse? Why is it not added by default with jre or jdk? What is the recommended forms library in java? I have installed e(fx)clipse 3.6.0 plugin but it did not help. This is screenshot of my project libraries.
hal
  • 831
  • 3
  • 13
  • 32
-1
votes
1 answer

Is there an alternative to stacked if's for checking for many blank fields in javafx app?

I'm new to java (and programming in general) and am learning by converting a basic spreadsheet into a javafx app. For this I'm using: Java & JavaFX 12 FXML & scenebuilder for the GUI There are about 10 input fields and they can't be blank (the app…
Nexmo16
  • 137
  • 1
  • 11
-1
votes
1 answer

How to find a class in java 12's html javadoc, now that class index is removed?

I just upgraded JAVA + Javadoc to version 12. Now, Javadoc has totally been 'restructured' into modules. Example: searching for the description of 'JComboBox', I couldn't find it: there's no more class index added. Finally I searched on disk for a…
user2691562
-2
votes
1 answer

Need help to setup "workplace"

I Hey guys i applied for job and they gave me create app to acquire basic skills they can work with but i have problem i have to use java 12 J2EE8 and wildfly 16.0.0 server but i cant run any examples on wildfly I downloaded eclipse and in eclipse…
-4
votes
1 answer

Does it matter if you don't learn the latest verion of a Java?

At the moment I am learning Java 9, despite Java 12 being the latest version. Is this an issue?
Mahamed Ducale
  • 119
  • 1
  • 8
1 2 3 4 5 6 7
8