JDK 17 lib/src.zip - Source Code

Q

What is the lib\src.zip file in JDK 17 installation directory?

✍: FYIcenter

A

lib\src.zip file in JDK 17 installation directory is the JDK 17 source code file, which includes source code for Java language modules and JDK tool modules.

You can unzip lib\src.zip and see the list of modules:

fyicenter$ mkdir src
fyicenter$ cd src
fyicenter$ cp /Library/Java/JavaVirtualMachines/jdk-17.0.5.jdk/Contents/Home/lib/src.zip .
fyicenter$ unzip

fyicenter$ ls -l
drwxr-xr-x    306 Nov  6 16:51 java.base
drwxr-xr-x    136 Nov  6 16:51 java.compiler
drwxr-xr-x    170 Nov  6 16:51 java.datatransfer
drwxr-xr-x    272 Nov  6 16:51 java.desktop
drwxr-xr-x    170 Nov  6 16:51 java.instrument
drwxr-xr-x    170 Nov  6 16:51 java.logging
drwxr-xr-x    238 Nov  6 16:51 java.management
drwxr-xr-x    170 Nov  6 16:51 java.management.rmi
drwxr-xr-x    204 Nov  6 16:51 java.naming
drwxr-xr-x    170 Nov  6 16:51 java.net.http
drwxr-xr-x    136 Nov  6 16:51 java.prefs
drwxr-xr-x    204 Nov  6 16:51 java.rmi
drwxr-xr-x    170 Nov  6 16:51 java.scripting
drwxr-xr-x    102 Nov  6 16:51 java.se
drwxr-xr-x    204 Nov  6 16:51 java.security.jgss
drwxr-xr-x    170 Nov  6 16:51 java.security.sasl
drwxr-xr-x    170 Nov  6 16:51 java.smartcardio
drwxr-xr-x    170 Nov  6 16:51 java.sql
drwxr-xr-x    170 Nov  6 16:51 java.sql.rowset
drwxr-xr-x    136 Nov  6 16:52 java.transaction.xa
drwxr-xr-x    238 Nov  6 16:52 java.xml
drwxr-xr-x    204 Nov  6 16:52 java.xml.crypto
drwxr-xr-x    136 Nov  6 16:52 jdk.accessibility
drwxr-xr-x    170 Nov  6 16:52 jdk.attach
drwxr-xr-x    136 Nov  6 16:52 jdk.charsets
drwxr-xr-x    204 Nov  6 16:52 jdk.compiler
drwxr-xr-x    136 Nov  6 16:52 jdk.crypto.cryptoki
drwxr-xr-x    136 Nov  6 16:52 jdk.crypto.ec
drwxr-xr-x    136 Nov  6 16:52 jdk.dynalink
drwxr-xr-x    136 Nov  6 16:52 jdk.editpad
drwxr-xr-x    170 Nov  6 16:52 jdk.hotspot.agent
drwxr-xr-x    170 Nov  6 16:52 jdk.httpserver
drwxr-xr-x    136 Nov  6 16:52 jdk.incubator.foreign
drwxr-xr-x    136 Nov  6 16:52 jdk.incubator.vector
drwxr-xr-x    136 Nov  6 16:52 jdk.internal.ed
drwxr-xr-x    136 Nov  6 16:52 jdk.internal.jvmstat
drwxr-xr-x    136 Nov  6 16:52 jdk.internal.le
drwxr-xr-x    136 Nov  6 16:52 jdk.internal.opt
drwxr-xr-x    442 Nov  6 16:52 jdk.internal.vm.ci
drwxr-xr-x    102 Nov  6 16:52 jdk.internal.vm.compiler
drwxr-xr-x    102 Nov  6 16:52 jdk.internal.vm.compiler.management
drwxr-xr-x    204 Nov  6 16:52 jdk.jartool
drwxr-xr-x    136 Nov  6 16:52 jdk.javadoc
drwxr-xr-x    136 Nov  6 16:52 jdk.jcmd
drwxr-xr-x    170 Nov  6 16:52 jdk.jconsole
drwxr-xr-x    136 Nov  6 16:52 jdk.jdeps
drwxr-xr-x    136 Nov  6 16:52 jdk.jdi
drwxr-xr-x    102 Nov  6 16:52 jdk.jdwp.agent
drwxr-xr-x    136 Nov  6 16:52 jdk.jfr
drwxr-xr-x    136 Nov  6 16:52 jdk.jlink
drwxr-xr-x    136 Nov  6 16:52 jdk.jpackage
drwxr-xr-x    136 Nov  6 16:52 jdk.jshell
drwxr-xr-x    136 Nov  6 16:52 jdk.jsobject
drwxr-xr-x    136 Nov  6 16:52 jdk.jstatd
drwxr-xr-x    136 Nov  6 16:52 jdk.localedata
drwxr-xr-x    136 Nov  6 16:52 jdk.management
drwxr-xr-x    170 Nov  6 16:52 jdk.management.agent
drwxr-xr-x    136 Nov  6 16:52 jdk.management.jfr
drwxr-xr-x    136 Nov  6 16:52 jdk.naming.dns
drwxr-xr-x    136 Nov  6 16:52 jdk.naming.rmi
drwxr-xr-x    136 Nov  6 16:52 jdk.net
drwxr-xr-x    136 Nov  6 16:52 jdk.nio.mapmode
drwxr-xr-x    136 Nov  6 16:52 jdk.random
drwxr-xr-x    170 Nov  6 16:52 jdk.sctp
drwxr-xr-x    136 Nov  6 16:52 jdk.security.auth
drwxr-xr-x    136 Nov  6 16:52 jdk.security.jgss
drwxr-xr-x    170 Nov  6 16:52 jdk.unsupported
drwxr-xr-x    136 Nov  6 16:52 jdk.unsupported.desktop
drwxr-xr-x    136 Nov  6 16:52 jdk.xml.dom
drwxr-xr-x    136 Nov  6 16:52 jdk.zipfs

 

JDK 17 Modules List

JDK 17 lib/modules - Runtime JImage File

JDK 17 JMod/Module Files

⇑⇑ FAQ for JDK (Java Development Kit) 17

2023-09-07, 288🔥, 0💬