A JAR is a Java program or library packed into one file: compiled classes, the resources they use and a manifest. Minecraft mods and server plugins are JARs too, as are web applications (.war) and enterprise ones (.ear). The question people most often have about one is simple and hard to answer without the right tools: will it run on the Java I have, and what is it? Online JAR openers mostly just unzip the file and list its contents; this one reads the classes themselves, and needs no Java installed.
This page reads the class files' version numbers for the Java release they need, lists the packages and classes, shows each class's fields and methods as Java's javap tool would, and reads the details mods, plugins and Maven builds leave inside.
- Which Java version do I need to run this JAR?
- The one shown at the top: each class file records the Java release it was compiled for, and the JAR needs the newest of them. An "UnsupportedClassVersionError" when running a JAR means your Java is older than that. Newer Java runs older JARs, so installing the version shown (or later) fixes it.
- Can I see the source code?
- The structure, not the code: every class with its fields and methods and their types, as the javap tool shows them. Turning the compiled code back into Java source needs a decompiler such as CFR, Vineflower or JD-GUI, which run on your computer with Java.
- Which Minecraft version is this mod for?
- Open it here: Fabric, Quilt, Forge and NeoForge mods list what they need, usually the Minecraft version and the loader, and the page shows it under "Needs". A mod built for Fabric does not load in Forge, and the reverse; the page names which one it is.
- Is it safe to open a JAR file here?
- Yes: looking is safe, running is not. This page only reads the file and never runs any of it, so nothing inside can touch your computer. Running a JAR is different: a Java program can do anything you can, so only run one from a source you trust. Checking it here first shows what it is, who signed it and what it bundles, though it is not a virus scan.
- How do I run a JAR file?
- Install Java at the version this page shows or later, then double-click the JAR, or run
java -jar name.jar in a terminal. If nothing happens, the JAR may be a library rather than a program: the page shows a main class, under "Starts with", only for a JAR that can be started on its own. Minecraft mods go in the mods folder of a Fabric, Forge or NeoForge install rather than being run.