Is javassist version 3.24.0.GA compatible with java 8? - java-8

I am currently on JDK 1.8. I am using javassist-3.18.1.GA.jar and I want to upgrade to 3.24.0.GA. I would like to know if javassist-3.24.0.GA is compatible with JDK 1.8 or not.
If not, then which version of javassist can be used that is compatible to JDK 1.8?
Thanks in advance

If you have already downloaded the javaassist-3.24.0.GA.zip then check the Readme.html file inside.
It has instructions on how to compile and run test classes(ex:- sample/Test.java) using your JDK.
You just have to run the below commands in command-line to compile and run Test class to check compatibility to JDK 1.8 when you are in the folder where Readme.html is located.
>javac -cp .;javassist.jar sample/Test.java
>java -cp .;javassist.jar sample.Test
There are multiple test classes available in sample folder for you to test javassist features.

Related

RunMojo compatibility problem with camel plugin

I have installed Camel plugin for IntelliJ.
To start debugging, we must create an ad-hoc application
The problem is that it gives me that error running it, when building the war file
org/apache/camel/maven/RunMojo 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
I can't just find where the problem is. I have checked all the java versions defined everywhere and seems fine...
in the POM
so what can be the problem? Mojo version is
The plugin has been compiled with JDK 11 and requires the minimum JDK version 11 to work with.

Hi, i have installed JDK 16.0.1 version and in eclipse i have created a maven project and i want to add cucumber dependencies

have installed JDK 16.0.1 version and in eclipse have created a maven project and want to add cucumber dependencies, please help. have tried to copy the build and properties from others but version of java is different but changed to 16.0.1 but still not seeing the cucumber dependencies added
I wasn’t aware that maven ran with jdk 16.0.1. What version of maven are you running?

Missing external jar files in jdk 11

I have an application build with install4j and it uses openjdk-8. Now i want to change openjdk-8 to openjdk-11. My application only uses jre not full jdk. In jdk11 there is no separate jre.
But AdoptOpenJDK is providing jre separately for jdk-11 but there are some jar files are missing and therse is no lib\ext folder in jre.
My question is can i add these jar files manually in jre that i downloaded from AdoptOPenJDK?
According to the Oracle JDK Migration Guide for JDK 11, the lib/ext directory was removed starting in JDK 9, and the presence of this directory will force java or javac executables to exit. For details see topic Removed Extension Mechanism in JDK 9 on Page 15 of this Migration Guide.
As for JavaFX, JDK 11 no longer includes it. You can obtain JavaFX and include it in your installation as either modular (jmod) or non-modular (jar) files. For details see the Getting Started with JavaFX reference documentation, specifically the sub-topics under Runtime Images.
Both of these guides offer a lot of guidance for migrating to JDK 11 or newer (Oracle offers newer editions of their migration guide, up to JDK 15).

How to setup Eclipse Neon to run on a Linux system that uses Java 1.7

Redhat Enterprise Linux(RHEL) 6.7
Java version "1.7.0_80"
Eclipse Juno 3.8.2
Eclipse Neon 4.6
In a few months my project will be moving from Eclipse 3 to Eclipse 4. I would like to get ready by playing around with Eclipse Neon. My environment variables ( Linux ) are set up with Java 1.7.
Obviously, I can download Java 1.8 as Eclipse Neon requires.
At this point I can't even get Eclipse Neon to boot up because of this dependency. How can I get Eclipse Neon to point to a downloaded Java 1.8 before it boots up?
Thanks
You can specify the path to a particular JVM you want Eclipse to use by editing the eclipse.ini file in the Eclipse install directory and adding the -vm line followed by the path to the Java.
For example:
-vm
/opt/sun-jdk-1.6.0.02/bin/java
Note: This must be two lines. It must be above any -vmargs entry in the file.

Does Maven need JDK

I am new to Maven, Java ...when I do a mvn clean package on a Java project, it does create the JAR file for me.
But still how can I know if I have JDK or is it still JRE?
I am on OSX 10.8
Maven needs a JDK, and not a JRE.
Do this for more information on which version of Java you have installed:
echo $JAVA_HOME
echo $PATH
which java
java -version
mvn --version
Maven requires JDK for compilation.
To check if you have JDK compiler you can type: javac in terminal.

Resources