I read the docs from quarkus and it is said that the following jdk versions are supported:
JDK 8 or 11+ installed with JAVA_HOME configured appropriately
Actually, I have JDK 12 installed. Can I use the following?:
<maven.compiler.release>1.11</maven.compiler.release>
maven.compiler.release is the same as:
<maven.compiler.source>1.11</maven.compiler.source>
<maven.compiler.target>1.11</maven.compiler.target>
EDIT:
Quarkus works with:
<maven.compiler.source>1.12</maven.compiler.source
<maven.compiler.target>1.12</maven.compiler.target>
or
<-- Note: 12 instead of 1.12 -->
<maven.compiler.release>12</maven.compiler.release>
Update: starting with Quarkus 2.x, the minimal requirement is JDK 11+. JDK 17 is supported too.
JDKs newer than 17 should work but are not actively tested.
====
On Linux and MacOS, you can use JDK 8 to 13.
On Windows, you can use JDK 8 to 12 as we are affected by a JDK bug: see https://github.com/quarkusio/quarkus/issues/5359 .
You can compile to something specific to your version if you are only planning to use the said JVM.
As for why our examples are all using JDK 8: they are built to also support native images via GraalVM and until very recently GraalVM only supported JDK 8. GraalVM 19.3.0 just added support for JDK 11 as a preview (and we are working on it).
You can use Quarkus with Java 12. There are plenty of ways to configure Maven to use that version, see this for example.
Related
The project currently uses tinkergraph-gremlin verson 3.5.2 of org.apache.tinkerpop with JAVA 11. The upgrade is required from Java 11 to Java 17 and wanted to know if org.apache.tinkerpop 3.5.2 version will be compatible with Java 17 or not. Can someone please let me know if there will be any issues to use org.apache.tinkerpop 3.5.2 version with java 17 or how we can check that?
I checked in Java 17 and Apache documentations to look for answers but couldn't find specific one
This JIRA describes one of the main reasons why TinkerPop is currently blocked on moving to Java 17: https://issues.apache.org/jira/browse/TINKERPOP-2633
which Google closure compiler version is for java 8?
Tried v20220905 version:
java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
You didn't provide much information. Anyway, the problem is linked to the version of the JDK your using.
Required Java version in 55 - ie Java 11 (or more)
Your JDK version is 52 - ie Java 8
You should upgrade you JDK (or use a version of this lib that support Java 8).
For more information about Java file version: https://en.wikipedia.org/wiki/Java_class_file#General_layout
I am unable to start the sonarqube in my local windows machine, Getting the below error,
I have set java path and it's working fine,
Regarding to the https://docs.sonarqube.org/8.6/requirements/requirements/ which describes as the following: -
Prerequisite
The only prerequisite for running SonarQube is to have Java (Oracle JRE 11 or OpenJDK 11) installed on your machine.
Supported Platforms
Java
SonarQube scanners require version 8 or 11 of the JVM
SonarQube server requires version 11. Versions beyond Java 11 are not officially supported.
Then this is a root cause why we face this failure message when we run it against the JDK version 8
I would suggest to download the JDK version 11 and use it so that we meet the SonarQube Server requirement.
I'm not sure if OpenJDK 1.8 supports JFR (java flight recorder). I know it was requested on the OpenJDK bugs forum.
Using OpenJDK on Linux and executing the following from a terminal:
jcmd `<pid>` JFR.start
returns
java.lang.IllegalArgumentException: Unknown diagnostic command
The OpenJDK 8 source code does not include the Java Flight Recorder implementation. That feature has been targeted to become part of OpenJDK source code with JDK 11, per http://openjdk.java.net/projects/jdk/11/ .
Officially, JFR was included in OpenJDK 8 update 262. You can check the release notes for openjdk8u262.
New features - JDK-8223147: JFR Backport
You can download this (or latest with JFR) release from the AdoptOpenJDK.
Java Flight Recorder is a commercial product included in Java SE Advanced that is only included in the Oracle JDK and not in OpenJDK.
Java flight recorder is not a part of 8th version but has to be open-sourced and included in 11th release according to
http://openjdk.java.net/jeps/328
https://bugs.openjdk.java.net/browse/JDK-8193393
Update(it's there):
https://mail.openjdk.java.net/pipermail/announce/2018-September/000257.html
Available in OpenJDK 8u262.
New features
JDK-8223147: JFR Backport
https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-July/012143.html
Per http://hirt.se/blog/?p=1161 the JFR Backport to OpenJDK 8 is officially planned and already available to try in some builds: https://www.infoq.com/news/2020/02/jfr-coming-to-openjdk-8/
I'm using the JDeveloper to developer MAF on mac , but when I install the Jdeveloper , it shows warning it don't support JDK Version(Java 1.8.0_40),it only support the Java version 7.0 - 8.0 .But Official tutorial says the MAF 2.2.1 needs Java 8.0 to deploy iOS8.1.
So there is conflict in Java version , I tried to use both JAVA version(8.0 and 7.2),it can open the Jdeveloper , but both have something error in software .
How can I solve this problem , THX~
First install JDK 7.
Then using that version install JDev 12.1.3.
Next install JDK 8.
Download and install the MAF extension.
JDeveloper will prompt you to point to the JDK 8 location.
Done.
Next MAF version is going to work on JDev 12.2.1 which uses JDK 8 already.