View Java Class Source Code in JAR file
- Download JD-GUI to open JAR file and explore Java source code file (.class .java)
- Click menu "File → Open File..." or just drag-and-drop the JAR file in the JD-GUI window example-project-1.0.0.jar file.
Once you open a JAR file, all the java classes in the JAR file will be displayed.
foo.bar
├─ foo.bar.Main.class - [JAR]
├─ foo.bar.TestModule.class - [JAR]
├─ foo.bar.TestResource.class - [JAR]
├─ foo.bar.TestRuntime.class - [JAR]
foo.bar.annotations
├─ foo.bar.annotations.NoArgsInstantiation.class - [JAR]
├─ foo.bar.annotations.RequestHandler.class - [JAR]
foo.bar.rest
├─ foo.bar.rest.MyRestAPI.class - [JAR]
foo.bar.resource
├─ foo.bar.resource.SingletonResource.class - [JAR]