Questions tagged [java-15]

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

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

111 questions
0
votes
1 answer

error: invalid source release: 1.15 error: invalid source release: 15 | JDK 15

what is the value of the source and target version with JDK 15 Build tool -> sbt/maven i.e javacOptions ++= Seq("-source", "1.10", "-target", "1.10") Note: Till 11 works fine
0
votes
1 answer

What is the supported JDK version for json-path 2.4.0?

What is the supported JDK version for json-path 2.4.0? I went through the homepage, https://github.com/json-path/JsonPath but I couldn't find the supported JDK version. Why I'm looking for this information I'm using JDK15 in my system and when I'm…
Arvind Kumar Avinash
  • 71,965
  • 6
  • 74
  • 110
0
votes
0 answers

@groupsequence not working with custom validation?

I am trying to validate a class, the validations I have to perform must be in this order: first the validation of the class itself, then the validation of nested objects and finally the custom validation. To try to order the validation I am using…
Jalisse
  • 39
  • 5
0
votes
0 answers

How to load a jar during plugin startup?

I have a Eclipse plugin project. I have a scenario where I need to load a external jar during plugin start-up at runtime. I am using Java 15.
0
votes
2 answers

At java code, how i can check jdk version to compile below java code?

// monitor.freeMemory = bean.getFreeMemorySize();//jdk 15 // monitor.maxMemory = bean.getTotalMemorySize(); // monitor.systemLoadAverage = bean.getCpuLoad(); monitor.freeMemory = bean.getFreePhysicalMemorySize();//jdk 13 monitor.freeMemory =…
Wang Liang
  • 4,244
  • 6
  • 22
  • 45
0
votes
1 answer

Adding JDK 15 to Netbeans 8.2 RC

Trying to figure out how to add JDK 15 as a Java Platform for Netbeans. Current Java version: Folder Path: JAVA_HOME in Environmental Values: Adding JDK 15 to Netbeans: Step 1) Step 2) Step 3) Step 4) Step 5) Step 6) Step 7) After I have…
Eitel Dagnin
  • 959
  • 4
  • 24
  • 61
0
votes
2 answers

Plugin for Java 15 support in eclipse 2020-09 no longer available

This question is similar to this one. I know you need to have this plugin to support Java 15 in eclipse 2020-09, however, it doesn't seem to be available any longer. When I try to install it via the marketplace, I am getting this error: No…
Dorian Gray
  • 2,913
  • 1
  • 9
  • 25
0
votes
2 answers

Getting preview of final text from jTextField

I’m trying to create JTextField that can accept only double (including scientific notation) with this check: abstract class DoubleKeyAdapter extends KeyAdapter { @Override public void KeyTyped(KeyEvent e) { if (!(((JTextField)…
Roy Ash
  • 1,078
  • 1
  • 11
  • 28
0
votes
1 answer

Get value as Class for an Annotation using the jdk.compiler module

I'm writing a Java compiler plugin using the jdk.compiler module and Java 15 with preview features enabled. The jdk.compiler module, introduced in Java 9, according to Oracle, contains all the APIs we used to have in java 8's tools.jar except for…
Auties01
  • 29
  • 1
  • 9
0
votes
0 answers

Two ways to http request give another results one by JAVA code and second by copy element from website

Two ways to http request give another results one by JAVA code and second by copy element from website. I am try to match them to same result! When I use Java Code private static boolean isValid(URL url, HttpURLConnection connection) { …
Lichay Tiram
  • 283
  • 3
  • 12
0
votes
2 answers

How to enable JDK 15 in Red Hat JBoss Developer Studio?

I'm using Red Hat JBoss Developer Studio 10.4.0.GA (also tested with CodeReady 12.17.0.GA), and would like to upgrade to JDK 15. But even with the new version installed, it is not available to be setup as default JRE. I tried some eclipse…
0
votes
1 answer

How to append timestamp to jar in spring boot gradle project?

How to append a timestamp to jar in the spring boot Gradle project? ./gradlew build Creates jar app-0.0.1-SNAPSHOT.jar, how to create jar with timestamp app-0.0.1-SNAPSHOT-2020-11-09.02-30.jar -------- Gradle plugins { id…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
0
votes
2 answers

Specific JDK in eclipse.ini for Eclipse IDE version 2020-09 use JDK 15, not default JDK what declared in system environment variable

Eclipse 2020-09, Error: Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required. I must set Java environment to JDK 1.8 for Gradle work correctly in some case. File…
Vy Do
  • 46,709
  • 59
  • 215
  • 313
0
votes
1 answer

Selected Java version 15 is not supported by SDK (maximum 14)

I have tried to create a new project using Spring Initializr in Intellij IDEA Ultimate, and I get this error message:
lock
  • 71
  • 3
-1
votes
1 answer

How to open IE from a java program

Hey I tried to open IE from a java program. the command start iexplorer works on command prompt and terminal but when used in a java program throws a IOException. When I execute the command cmd start iexplorer the program is just running without…
user14601106