1 /* 2 * Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 /** 27 * Defines the foundational APIs of the Java SE Platform. 28 * 29 * <dl class="notes"> 30 * <dt>Providers:</dt> 31 * <dd> The JDK implementation of this module provides an implementation of 32 * the {@index jrt jrt} {@linkplain java.nio.file.spi.FileSystemProvider 33 * file system provider} to enumerate and read the class and resource 34 * files in a run-time image. 35 * The jrt file system can be created by calling 36 * {@link java.nio.file.FileSystems#getFileSystem 37 * FileSystems.getFileSystem(URI.create("jrt:/"))}. 38 * </dd> 39 * </dl> 40 * 41 * @toolGuide java java launcher 42 * @toolGuide keytool 43 * 44 * @provides java.nio.file.spi.FileSystemProvider 45 * 46 * @uses java.lang.System.LoggerFinder 47 * @uses java.net.ContentHandlerFactory 48 * @uses java.net.spi.URLStreamHandlerProvider 49 * @uses java.nio.channels.spi.AsynchronousChannelProvider 50 * @uses java.nio.channels.spi.SelectorProvider 51 * @uses java.nio.charset.spi.CharsetProvider 52 * @uses java.nio.file.spi.FileSystemProvider 53 * @uses java.nio.file.spi.FileTypeDetector 54 * @uses java.security.Provider 55 * @uses java.text.spi.BreakIteratorProvider 56 * @uses java.text.spi.CollatorProvider 57 * @uses java.text.spi.DateFormatProvider 58 * @uses java.text.spi.DateFormatSymbolsProvider 59 * @uses java.text.spi.DecimalFormatSymbolsProvider 60 * @uses java.text.spi.NumberFormatProvider 61 * @uses java.time.chrono.AbstractChronology 62 * @uses java.time.chrono.Chronology 63 * @uses java.time.zone.ZoneRulesProvider 64 * @uses java.util.spi.CalendarDataProvider 65 * @uses java.util.spi.CalendarNameProvider 66 * @uses java.util.spi.CurrencyNameProvider 67 * @uses java.util.spi.LocaleNameProvider 68 * @uses java.util.spi.ResourceBundleControlProvider 69 * @uses java.util.spi.ResourceBundleProvider 70 * @uses java.util.spi.TimeZoneNameProvider 71 * @uses java.util.spi.ToolProvider 72 * @uses javax.security.auth.spi.LoginModule 73 * 74 * @moduleGraph 75 * @since 9 76 */ 77 module java.base { 78 79 exports java.io; 80 exports java.lang; 81 exports java.lang.annotation; 82 exports java.lang.classfile; 83 exports java.lang.classfile.attribute; 84 exports java.lang.classfile.constantpool; 85 exports java.lang.classfile.instruction; 86 exports java.lang.constant; 87 exports java.lang.foreign; 88 exports java.lang.invoke; 89 exports java.lang.module; 90 exports java.lang.ref; 91 exports java.lang.reflect; 92 exports java.lang.runtime; 93 exports java.math; 94 exports java.net; 95 exports java.net.spi; 96 exports java.nio; 97 exports java.nio.channels; 98 exports java.nio.channels.spi; 99 exports java.nio.charset; 100 exports java.nio.charset.spi; 101 exports java.nio.file; 102 exports java.nio.file.attribute; 103 exports java.nio.file.spi; 104 exports java.security; 105 exports java.security.cert; 106 exports java.security.interfaces; 107 exports java.security.spec; 108 exports java.text; 109 exports java.text.spi; 110 exports java.time; 111 exports java.time.chrono; 112 exports java.time.format; 113 exports java.time.temporal; 114 exports java.time.zone; 115 exports java.util; 116 exports java.util.concurrent; 117 exports java.util.concurrent.atomic; 118 exports java.util.concurrent.locks; 119 exports java.util.function; 120 exports java.util.jar; 121 exports java.util.random; 122 exports java.util.regex; 123 exports java.util.spi; 124 exports java.util.stream; 125 exports java.util.zip; 126 exports javax.crypto; 127 exports javax.crypto.interfaces; 128 exports javax.crypto.spec; 129 exports javax.net; 130 exports javax.net.ssl; 131 exports javax.security.auth; 132 exports javax.security.auth.callback; 133 exports javax.security.auth.login; 134 exports javax.security.auth.spi; 135 exports javax.security.auth.x500; 136 exports javax.security.cert; 137 138 139 // additional qualified exports may be inserted at build time 140 // see make/gensrc/GenModuleInfo.gmk 141 142 exports com.sun.crypto.provider to 143 jdk.crypto.cryptoki; 144 exports sun.invoke.util to 145 jdk.compiler; 146 exports com.sun.security.ntlm to 147 java.security.sasl; 148 exports jdk.internal to 149 jdk.incubator.vector; 150 // Note: all modules in the exported list participate in preview features 151 // and therefore if they use preview features they do not need to be 152 // compiled with "--enable-preview". 153 // It is recommended for any modules that do participate that their 154 // module declaration be annotated with jdk.internal.javac.ParticipatesInPreview 155 exports jdk.internal.javac to 156 java.compiler, 157 java.desktop, // for ScopedValue 158 jdk.compiler, 159 jdk.crypto.cryptoki, // participates in preview features 160 jdk.incubator.vector, // participates in preview features 161 jdk.jartool, // participates in preview features 162 jdk.jdeps, // participates in preview features 163 jdk.jfr, // participates in preview features 164 jdk.jlink, // participates in preview features 165 jdk.jshell, // participates in preview features 166 jdk.incubator.code; // participates in preview features 167 exports jdk.internal.classfile.impl to 168 jdk.incubator.code; 169 exports jdk.internal.access to 170 java.desktop, 171 java.logging, 172 java.management, 173 java.rmi, 174 jdk.charsets, 175 jdk.jartool, 176 jdk.jlink, 177 jdk.jfr, 178 jdk.management, 179 jdk.net, 180 jdk.sctp, 181 jdk.crypto.cryptoki, 182 jdk.incubator.code; 183 exports jdk.internal.classfile.components to 184 jdk.jfr; 185 exports jdk.internal.foreign to 186 jdk.incubator.vector; 187 exports jdk.internal.event to 188 jdk.jfr; 189 exports jdk.internal.io to 190 jdk.internal.le, 191 jdk.jshell; 192 exports jdk.internal.jimage to 193 jdk.jlink; 194 exports jdk.internal.jimage.decompressor to 195 jdk.jlink; 196 exports jdk.internal.loader to 197 java.instrument, 198 java.logging, 199 java.naming; 200 exports jdk.internal.jmod to 201 jdk.compiler, 202 jdk.jlink; 203 exports jdk.internal.logger to 204 java.logging; 205 exports jdk.internal.org.xml.sax to 206 jdk.jfr; 207 exports jdk.internal.org.xml.sax.helpers to 208 jdk.jfr; 209 exports jdk.internal.misc to 210 java.desktop, 211 java.logging, 212 java.management, 213 java.naming, 214 java.net.http, 215 java.rmi, 216 java.security.jgss, 217 jdk.attach, 218 jdk.charsets, 219 jdk.compiler, 220 jdk.crypto.cryptoki, 221 jdk.incubator.vector, 222 jdk.jfr, 223 jdk.jshell, 224 jdk.nio.mapmode, 225 jdk.unsupported, 226 jdk.internal.vm.ci, 227 jdk.graal.compiler; 228 exports jdk.internal.module to 229 java.instrument, 230 java.management.rmi, 231 jdk.jartool, 232 jdk.compiler, 233 jdk.jfr, 234 jdk.jlink, 235 jdk.jpackage; 236 exports jdk.internal.perf to 237 java.management, 238 jdk.management.agent, 239 jdk.internal.jvmstat; 240 exports jdk.internal.platform to 241 jdk.management, 242 jdk.jfr; 243 exports jdk.internal.ref to 244 java.desktop, 245 java.net.http, 246 jdk.naming.dns; 247 exports jdk.internal.reflect to 248 java.logging, 249 java.sql, 250 java.sql.rowset, 251 jdk.dynalink, 252 jdk.internal.vm.ci, 253 jdk.unsupported; 254 exports jdk.internal.vm to 255 java.management, 256 jdk.internal.jvmstat, 257 jdk.management, 258 jdk.management.agent, 259 jdk.internal.vm.ci, 260 jdk.jfr; 261 exports jdk.internal.vm.annotation to 262 java.instrument, 263 jdk.internal.vm.ci, 264 jdk.incubator.vector, 265 jdk.jfr, 266 jdk.unsupported; 267 exports jdk.internal.vm.vector to 268 jdk.incubator.vector; 269 exports jdk.internal.util.xml to 270 jdk.jfr; 271 exports jdk.internal.util.xml.impl to 272 jdk.jfr; 273 exports jdk.internal.util to 274 java.desktop, 275 java.prefs, 276 java.security.jgss, 277 java.smartcardio, 278 jdk.charsets, 279 jdk.internal.vm.ci, 280 jdk.jlink, 281 jdk.jpackage, 282 jdk.net; 283 exports sun.net to 284 java.net.http, 285 jdk.naming.dns; 286 exports sun.net.ext to 287 jdk.net; 288 exports sun.net.dns to 289 java.security.jgss, 290 jdk.naming.dns; 291 exports sun.net.util to 292 java.net.http, 293 jdk.jconsole, 294 jdk.sctp; 295 exports sun.net.www to 296 java.net.http, 297 jdk.jartool; 298 exports sun.net.www.protocol.http to 299 java.security.jgss; 300 exports sun.nio.ch to 301 java.management, 302 jdk.crypto.cryptoki, 303 jdk.net, 304 jdk.sctp; 305 exports sun.nio.cs to 306 jdk.charsets; 307 exports sun.nio.fs to 308 jdk.net; 309 exports sun.reflect.annotation to 310 jdk.compiler; 311 exports sun.reflect.generics.reflectiveObjects to 312 java.desktop, 313 jdk.incubator.code; 314 exports sun.reflect.misc to 315 java.desktop, 316 java.management; 317 exports sun.security.internal.interfaces to 318 jdk.crypto.cryptoki; 319 exports sun.security.internal.spec to 320 jdk.crypto.cryptoki; 321 exports sun.security.jca to 322 java.smartcardio, 323 jdk.crypto.cryptoki, 324 jdk.naming.dns; 325 exports sun.security.pkcs to 326 jdk.jartool; 327 exports sun.security.provider to 328 java.security.jgss, 329 jdk.crypto.cryptoki, 330 jdk.security.auth; 331 exports sun.security.provider.certpath to 332 java.naming, 333 jdk.jartool; 334 exports sun.security.rsa to 335 jdk.crypto.cryptoki; 336 exports sun.security.timestamp to 337 jdk.jartool; 338 exports sun.security.tools to 339 jdk.jartool; 340 exports sun.security.util to 341 java.naming, 342 java.security.jgss, 343 java.security.sasl, 344 java.smartcardio, 345 java.xml.crypto, 346 jdk.crypto.cryptoki, 347 jdk.jartool, 348 jdk.security.auth, 349 jdk.security.jgss; 350 exports sun.security.x509 to 351 jdk.crypto.cryptoki, 352 jdk.jartool; 353 exports sun.security.validator to 354 jdk.jartool; 355 exports sun.util.cldr to 356 jdk.jlink; 357 exports sun.util.locale.provider to 358 java.desktop, 359 jdk.jlink, 360 jdk.localedata; 361 exports sun.util.logging to 362 java.desktop, 363 java.logging, 364 java.prefs; 365 exports sun.util.resources to 366 jdk.localedata; 367 368 // the service types defined by the APIs in this module 369 370 uses java.lang.System.LoggerFinder; 371 uses java.net.ContentHandlerFactory; 372 uses java.net.spi.InetAddressResolverProvider; 373 uses java.net.spi.URLStreamHandlerProvider; 374 uses java.nio.channels.spi.AsynchronousChannelProvider; 375 uses java.nio.channels.spi.SelectorProvider; 376 uses java.nio.charset.spi.CharsetProvider; 377 uses java.nio.file.spi.FileSystemProvider; 378 uses java.nio.file.spi.FileTypeDetector; 379 uses java.security.Provider; 380 uses java.text.spi.BreakIteratorProvider; 381 uses java.text.spi.CollatorProvider; 382 uses java.text.spi.DateFormatProvider; 383 uses java.text.spi.DateFormatSymbolsProvider; 384 uses java.text.spi.DecimalFormatSymbolsProvider; 385 uses java.text.spi.NumberFormatProvider; 386 uses java.time.chrono.AbstractChronology; 387 uses java.time.chrono.Chronology; 388 uses java.time.zone.ZoneRulesProvider; 389 uses java.util.spi.CalendarDataProvider; 390 uses java.util.spi.CalendarNameProvider; 391 uses java.util.spi.CurrencyNameProvider; 392 uses java.util.spi.LocaleNameProvider; 393 uses java.util.spi.ResourceBundleControlProvider; 394 uses java.util.spi.ResourceBundleProvider; 395 uses java.util.spi.TimeZoneNameProvider; 396 uses java.util.spi.ToolProvider; 397 uses javax.security.auth.spi.LoginModule; 398 399 // JDK-internal service types 400 401 uses jdk.internal.io.JdkConsoleProvider; 402 uses jdk.internal.logger.DefaultLoggerFinder; 403 uses sun.text.spi.JavaTimeDateTimePatternProvider; 404 uses sun.util.spi.CalendarProvider; 405 uses sun.util.locale.provider.LocaleDataMetaInfo; 406 uses sun.util.resources.LocaleData.CommonResourceBundleProvider; 407 uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider; 408 409 // Built-in service providers that are located via ServiceLoader 410 411 provides java.nio.file.spi.FileSystemProvider with 412 jdk.internal.jrtfs.JrtFileSystemProvider; 413 414 }