Decompile Java class or Jar container under Linux Mint / Ubuntu

Recently I came across a third-party SDK that I had trouble with. Looking into the decompiled code helped me to spot the problem. I used Lee Benfield’s Java decompiler CFR because it is straight forward and can even batch decompile jar container. 

1. Download the most recent version of CFR (crf 0.1.15 at the time of writing)

2. Run decompile with output into terminal

2a. Run this if you want to export it into a separate Java file

3. To decomplile a complete jar container

Caveat: When using “–ouputdir” the directory path is not relative to the folder CFR runs in. So make sure you either use an absolute path or the “.” for relative paths.


Other decompiler:

5 People think it's helpful 😀

Leave a Reply

Your email address will not be published. Required fields are marked *