JDK 14 doesn't have rt.jar with it. Where are bootstrap classes then?
Asked Answered
B

2

14

The only jar file I could find inside JAVA-HOME/lib was a file called jrt-fs.jar which is only 105 KB in size.

So where are Runtime (bootstrap) classes then?

Brenna answered 11/6, 2020 at 12:34 Comment(1)
The classes are in the file lib/modules. This is a binary file which can be read with JRT file system.Higginson
M
23

The rt.jar file was removed in Java 9, but if you need to access the classfiles in the runtime, you can do so easily through the JRT file system. See, for example, https://mcmap.net/q/555076/-where-are-the-java-system-packages-stored.

Mccarron answered 11/6, 2020 at 13:35 Comment(1)
Or this one, which also addresses the purpose of the remaining jrt-fs.jar.Lailalain
U
4

Allow me to quote the migration guide:

Class and resource files previously stored in lib/rt.jar, lib/tools.jar, lib/dt.jar and various other internal JAR files are stored in a more efficient format in implementation-specific files in the lib directory.

Ungracious answered 11/6, 2020 at 12:40 Comment(2)
Waiting for Naman's comment saying: "Or you could just visit xy website which will load contents faster" ;)Ungracious
...and the JEP-220 as quoted in this answer already clarifies this with more details. If it was for specifically jrt-fs, Brian and Holger made the point pretty clear with the links they'd shared.Hexapody

© 2022 - 2024 — McMap. All rights reserved.