Missing external jar files in jdk 11 - java-8

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).

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.

Is javassist version 3.24.0.GA compatible with 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.

Selected Java version 8 is not supported by SDK (Maximum 7)

New project => Sprint Initiliazr. After leaving everything to the default settings, and clicking next, the error below shows:
Selected Java version 8 is not supported by SDK (Maximum 7)
See the image here
I've tried to update Java and installing AdoptOpenJDK as well as restarting the computer but that didn't help.
Try at first following the JDK setup guide and installing the Jetbrains JDK: Selecting the JDK version the IDE will run under.
If this doesn't help, select at the project creation the appropriate Jetbrains JDK manually. The Jetbrains JDK was downloaded on your machine by the Choose Runtime Plugin (as mentioned in the guide).
In Windows it's located in your user folder e.g.:
C:\Users\xxxx\.IntelliJIdea201x.x\config\jdks\jbsdkxxxx...
JDK Selection under Windows

Gradle configuration on AndroidStudio 1.0X

I have downloaded a fresh copy of AndroidStudio 1.02 which comes with gradle 2.2.1. My JAVA_HOME points to a java 1.7 installation. In fact I do not even have java 1.4.
Yet I receive this error:
Error:Gradle 2.2.1 requires Java 6 or later to run. Your build is currently configured to use Java 4.
After searching for an hour on the internet and digging into AndroidStudio settings I cannot get it to work. I'll appreciate if someone can help.
Try File->Other Settings->Default Project Structure and set JDK Location to Java 6 or later

Why is java (32-bit) JDK installer not copying rt.jar file to JRE directory? (Windows 2008 R2 SP1)

The system is using Windows Server 2008 R2 SP1, Tomcat 5.5.28, and Java SE 6 Update 20 for both JDK and JRE.
I updated the system to the latest JDK update, Java SE 6 Update 27, and let it install using defaults; it created a new directory, jdk1.6.0_27, and overwrote the jre directory. It asked to restart and then I noticed Tomcat would not start. I ran the java -version from the jre directory and it outputted
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I discovered the directory was missing the rt.jar file; I pasted it from the jdk1.6.0_27/jre/bin directory and java -version worked and Tomcat started. My question is why is this error occurring in the first place??? Is it the Java installer?
I ran the Java Automatic update feature (which only updates JRE, not JDK) and it worked without a hiccup. So, why is the Java installer from Oracle.com not updating the JRE directory properly?
Thank you in advance.
I think that's the case all Windows installers have this obligatory phrase:
Please close all running programs before you continue with installation
I think something was holding the old rt.jar and installer has a bug that cannot cope with this condition.

Resources