# Uses of Class
java.util.jar.JarFile

Packages that use JarFile
Package | Description
--- | ---
java.lang.instrument | Provides services that allow Java programming language agents to instrument programs running on the JVM.
java.net | Provides the classes for implementing networking applications.
java.util.jar | Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.

## Uses of JarFile in java.lang.instrument

Methods in java.lang.instrument with parameters of type JarFile
Modifier and Type | Method | Description
--- | --- | ---
`void` | Instrumentation.`appendToBootstrapClassLoaderSearch​(JarFile jarfile)` | Specifies a JAR file with instrumentation classes to be defined by the bootstrap class loader.
`void` | Instrumentation.`appendToSystemClassLoaderSearch​(JarFile jarfile)` | Specifies a JAR file with instrumentation classes to be defined by the system class loader.

## Uses of JarFile in java.net

Methods in java.net that return JarFile
Modifier and Type | Method | Description
--- | --- | ---
`abstract JarFile` | JarURLConnection.`getJarFile()` | Return the JAR file for this connection.

## Uses of JarFile in java.util.jar

Methods in java.util.jar with parameters of type JarFile
Modifier and Type | Method | Description
--- | --- | ---
`void` | Pack200.Packer.`pack​(JarFile in, OutputStream out)` | Deprecated, for removal: This API element is subject to removal in a future version. Takes a JarFile and converts it into a Pack200 archive.