Is org.apache.tinkerpop (tinkergraph-gremlin) 3.5.2 version compatible with JDK 17 - maven

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

Related

Google closure compiler for java 8

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

sonarqube-8.6.1 unable to start in windows

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.

supported java versions for quarkus running on hotspot

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.

install kafka on windows - UnsupportedClassVersionError

Trying a POC, followed as suggest at https://dzone.com/articles/running-apache-kafka-on-windows-os also a reference is there Is there an easy way to install Kafka on Windows?. I was able to run zookeeper 3.4.9 but not kafka 2.11-0.10.2.0, when i try to start i see
Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=kafka/Kafka, offset=6 i have IBM JDK 1.7.0 installed on windows 7 64-bit version. Any suggestions please to resolve this issue?
It may be because you are trying to run Kafka build on a different Java runtime version than it was compiled.
For Kafka 0.10.2.0, you will have to upgrade your java version to JDK 1.8 or if you want to stay in JDK 1.7, make sure you are on u51 or newer.
For further reference on above, check the following link,
https://kafka.apache.org/documentation/#java
Update your jdk 1.7 to jdk 1.8

Does OpenJDK 1.8 support JFR?

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/

Resources