# JavaDecompiler **Repository Path**: wizard-al/JavaDecompiler ## Basic Information - **Project Name**: JavaDecompiler - **Description**: Java反编译工具,可通过代码试下jar文件的反编译。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2014-08-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #JavaDecompiler Java的反编译工具,可通过代码实现jar文件的反编译。 ```java /* Returns the source of SomeClass from compiled.jar as a String */ new jd.core.Decompiler().decompile("compiled.jar", "com/namespace/SomeClass.class"); /* * Returns the sources of all the classes in compiled.jar as a Map * where the key is the class name (full path) and the value is the source */ new jd.core.Decompiler().decompile("compiled.jar"); /* * Returns the number of classes decompiled and saved into out_dir */ new jd.core.Decompiler().decompileToDir("compiled.jar", "out_dir");