<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Neo Meng</title>
    <description>The latest articles on DEV Community by Neo Meng (@neocanable).</description>
    <link>https://dev.to/neocanable</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3242517%2F26881145-aab5-41ac-986f-a7b5ff99a355.jpg</url>
      <title>DEV Community: Neo Meng</title>
      <link>https://dev.to/neocanable</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neocanable"/>
    <language>en</language>
    <item>
      <title>A new OpenSource java decompiler</title>
      <dc:creator>Neo Meng</dc:creator>
      <pubDate>Thu, 12 Jun 2025 12:08:11 +0000</pubDate>
      <link>https://dev.to/neocanable/a-new-opensource-java-decompiler-4on9</link>
      <guid>https://dev.to/neocanable/a-new-opensource-java-decompiler-4on9</guid>
      <description>&lt;p&gt;Garlic is a Java decompiler written purely in C language.&lt;/p&gt;

&lt;h3&gt;
  
  
  Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;decompile .class file&lt;/li&gt;
&lt;li&gt;decompile jar file&lt;/li&gt;
&lt;li&gt;decompile war file&lt;/li&gt;
&lt;li&gt;decompile apk file (coming soon)&lt;/li&gt;
&lt;li&gt;decompile dex file (coming soon)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Build
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;requirements&lt;/strong&gt;: cmake &amp;gt;= &lt;strong&gt;3.26&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No other dependencies&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/neocanable/garlic.git
&lt;span class="nb"&gt;cd &lt;/span&gt;garlic
cmake &lt;span class="nt"&gt;-B&lt;/span&gt; build
cmake &lt;span class="nt"&gt;--build&lt;/span&gt; build
./build/garlic
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;decompile .class file&lt;/p&gt;

&lt;p&gt;decompile .class file, default output is &lt;strong&gt;stdout&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;garlic /path/to/jvm.class
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;decompile jar file&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;garlic /path/to/file.jar

garlic /path/to/file.jar &lt;span class="nt"&gt;-o&lt;/span&gt; /path/to/save &lt;span class="c"&gt;# -o option is source code output path&lt;/span&gt;

garlic /path/to/file.jar &lt;span class="nt"&gt;-t&lt;/span&gt; 5             &lt;span class="c"&gt;# -t option is thread count, default is 4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;default output is same level directory as the file&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;javap &lt;/p&gt;

&lt;p&gt;like javap, more faster, disabled LineNumber and StackMapTable attributes&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;garlic /path/to/jvm.class &lt;span class="nt"&gt;-p&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;dexdump&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;garlic /path/to/dalvik.dex &lt;span class="nt"&gt;-p&lt;/span&gt;           &lt;span class="c"&gt;# only support dexdump&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;welcome to feedback, issues, or ideas for improvement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;github&lt;/strong&gt;: &lt;a href="https://github.com/neocanable/garlic" rel="noopener noreferrer"&gt;https://github.com/neocanable/garlic&lt;/a&gt;&lt;/p&gt;

</description>
      <category>c</category>
      <category>java</category>
      <category>decompiler</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
