Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

Missing jar files

Missing jar files

My question is can i add these jar files manually in jre that i downloaded from AdoptOPenJDK?

like image 626
deadshot Avatar asked Oct 21 '25 16:10

deadshot


1 Answers

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

like image 72
MikeOnline Avatar answered Oct 24 '25 12:10

MikeOnline



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!