client.jar

| Author(s) | |
|---|---|
| Platform(s) | |
| Written in | |
| Latest version |
|
| Release date |
May 16, 2009 (mc-161607) |
| Size |
|
| License | |
| Source available |
Partial |
| Links |
|
{
"title": "client.jar",
"rows": [
{
"field": "\n* (link to File:Mojang Studios logo.svg article, displayed as x20px|link=Mojang Studios) (link to Mojang Studios article, displayed as Mojang Studios)",
"label": "Author(s)"
},
{
"field": "(link to File:Windows.svg article, displayed as x20px|Windows|link=wikipedia:Microsoft Windows)<span class=\"os-icon\">(link to File:macOS.svg article, displayed as x10px|macOS|link=wikipedia:macOS|class=darkmode-invert)</span><span class=\"os-icon\">(link to File:Tux.svg article, displayed as x20px|Linux|link=wikipedia:Linux)</span> and other platforms that support running a JVM",
"label": "Platform(s)"
},
{
"field": "(link to File:Java.svg article, displayed as x20px|Java|link=wikipedia:Java (programming language)) (link to wikipedia:Java (programming language) article, displayed as Java)",
"label": "Written in"
},
{
"field": "\n* '''Release''': (link to Java Edition_1.21.11 article, displayed as 1.21.11)\n* '''Snapshot''': (link to Java Edition_26.1 Snapshot 6 article, displayed as 26.1 Snapshot 6)",
"label": "Latest version"
},
{
"field": "May 16, 2009 ((link to Java Edition Classic mc-161607 article, displayed as mc-161607))",
"label": "Release date"
},
{
"field": "\n* ≈ 53 MiB ((link to Java Edition_1.21.11 article, displayed as 1.21.11))\n* ≈ 74 MiB (as of (link to Java Edition_26.1 Snapshot 6 article, displayed as 26.1 Snapshot 6))",
"label": "Size"
},
{
"field": "[https://www.minecraft.net/en-us/eula EULA]",
"label": "License"
},
{
"field": "Partial",
"label": "<span style=\"white-space:normal\">Source available</span>"
},
{
"field": "\n* [https://www.minecraft.net/en-us/download Website]",
"label": "Links"
}
],
"invimages": [],
"images": [
"Java Edition 1.21.11.png"
]
}
client.jar is a JAR file containing the Minecraft program and some default resources. It is launched by the user using the Minecraft Launcher.
The client.jar file is named using the version number after download, e.g., 1.21.5.jar. The name client.jar is used on the distribution server, and commonly as a general term for all versions of the file. It is located at .minecraft/versions/version/version.jar, next to the client.json file.
It can be opened with a file archiving program that supports ZIP files.
Contents
The file contains some, but not all, default resources. For instance, textures from the vanilla resource pack are stored here, but sound files are stored separately.
It also stores the Minecraft program in form of Java class files. These files have names such as "acq" or "qn", because they have been obfuscated with the ProGuard tool to hide the original names.[until JE 26.1] However, they can still be disassembled or decompiled to understand their functionality and aid modding, and can be deobfuscated using the official obfuscation maps or community-created obfuscation maps such as Yarn.
Directory structure
The client.jar file has the following directory structure. Note that Java class files have been omitted for brevity.
version.jar
META-INF: Information for the JVM, including signature information, which may be used to check if the game is modified.
LICENSE
MANIFEST.MF
MOJANGCS.RSA
MOJANGCS.SF
assets: The vanilla resource pack.
minecraft
atlases
blockstates
font
include
items
lang
en_us.json: The default language file.
models
particles
shaders
texts
splashes.txt: Splash text file.
end.txt: End poem text file.
postcredits.txt
credits.json
textures
gpu_warnlist.json: 76 byte file to check and warn about incompatible GPUs.
regional_compliancies.json: 301 byte file to check and warn users in-game playing for too long in South Korea.
.mcassetsroot: Empty file identifying the vanilla resource pack.
com
mojang
blaze3d
realmsclient
math
data: The vanilla data pack.
minecraft
advancement
banner_pattern
cat_variant
chat_type
chicken_variant
cow_variant
damage_type
datapacks
dialog
custom_options.json
quick_actions.json
server_links.json
dimension_type
enchantment
enchantment_provider
raid
frog_variant
instrument
jukebox_song
loot_table
painting_variant
pig_variant
recipe
structure: Structure data.
tags
test_environment: Introduced in 1.21.5.
test_instance: Introduced in 1.21.5.
timeline: Timeline data.
trade_set
trial_spawner: Trial spawner data. Introduced in 1.21.
trim_material
trim_pattern
villager_trade
wolf_variant
wolf_sound_variant
world_clock[upcoming JE 26.1]
worldgen
zombie_nautilus_variant
.mcassetsroot: Empty file identifying the vanilla data pack.
net
minecraft
client
data
obfuscate
server
util
flightrecorder-config.jfc
pack.png: Vanilla resource pack and data pack icon.
version.json
History
| Java Edition Classic | |||||||
|---|---|---|---|---|---|---|---|
| mc-161607 | Notch started distributing the game to other people, constituting the creation of client.jar. | ||||||
| 0.0.14a_08 | Signature files, MOJANG_C.SF and MOJANG_C.DSA have been added to the META-INF folder. | ||||||
| Java Edition Indev | |||||||
| 0.31 | 20091223-0040 | Java class files have been moved from client.jar/com/mojang/minecraft to client.jar/net/minecraft. | |||||
| Java Edition Infdev | |||||||
| 20100627 | Java class files are now all located in the root directory of client.jar. | ||||||
| Java Edition | |||||||
| 1.2.5 | The signature files, MOJANG_C.SF and MOJANG_C.DSA have been moved to CODESIGN.SF and CODESIGN.RSA, respectively. | ||||||
| 1.21.4 | 24w45a | New entry point net.minecraft.client.data.Main is present in client.jar, with similar command line structure as data generator in server.jar. | |||||
| Upcoming Java Edition | |||||||
| 26.1 | snap1 | The Java class files in client.jar are no longer obfuscated, and are no longer located in the root directory of client.jar. | |||||
See also
- Bedrock Edition installation files, which contain the game client executable for Bedrock Edition.
- .minecraft
- server.jar
| |||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||