Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDK23/bin folder is not a complete JRE

Mike de VriesFeb 7 2025

According to the page

https://www.oracle.com/java/technologies/javase/jdk23-readme-downloads.html#contents

The /bin folder is: An implementation of the Java Runtime Environment (JRE).

The /lib folder is: These files are not intended for external use.

I download the x64 Compressed Archive from

https://www.oracle.com/java/technologies/downloads/#jdk23-windows

Unzip the file. It has a total size on disk of: 382MB

I remove all folders but /bin. Now size on disk is: 93MB

If I now execute the command

C:\full_path_to\jdk-23.0.2\bin\java.exe -jar someprog.jar

I get the message:

Error: could not open `c:\full_path_to\jdk-23.0.2\lib\jvm.cfg'

The content of this file:

-server KNOWN
-client IGNORE

This file is not the only file needed from /lib if I create a /lib folder with only jvm.cfg.

The /lib folder should not be needed for external use.

If I run with the full JDK I do not get an error.

What do I need to do to run a jar archive without the /lib and /jmods directories (~300MB)?

Comments
Post Details
Added on Feb 7 2025
0 comments
366 views