Neocanable/garlic: Java Decompiler in C
Uncover Garlic, the new Java decompiler crafted in C, a powerful tool to swiftly convert compiled Java files into readable source code.News Directory 3 reports that Garlic supports.class, .jar, and .war file formats, empowering developers with efficient code recovery capabilities. Built with speed in mind, Garlic prioritizes performance by disabling specific attributes, ensuring rapid decompilation. This Java decompiler streamlines the process, enabling you to easily inspect and understand compiled code. Adjust the output path and thread count for customized performance. Discover what’s next with potential future support for Dalvik Executable (.dex) files.
Garlic: Fast Java Decompiler Tool Unveiled
A new tool called Garlic allows developers to produce Java source code from compiled files. Written in C, this Java decompiler supports .class, .jar, and .war file formats.
Garlic, a Java decompiler tool, requires CMake version 3.26 or higher to build. No other dependencies are needed.
To use Garlic, users must first clone the repository from GitHub, navigate to the Garlic directory, create a build directory, build the project, and then execute the compiled programme.
Garlic can decompile individual .class files,with the output directed to standard output by default. For .jar files, the tool can specify an output path using the “-o” option. Thread count can be adjusted using the “-t” option, with a default of 4 threads.
Like Javap, garlic disables LineNumber and StackMapTable attributes for faster performance.
What’s next
Future growth may include support for Dalvik Executable (.dex) files.
