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:

(52 Posts)

20 years of coding and working as software engineer but I am still eager to learn more. I am very passionate when it comes to open source, Linux and Java. But I made my peace with Windows long ago to fully enjoy my PC gaming hobby. I have a soft spot for 90s electronic music and Babylon 5. In the evenings you will find me roaming the endless space in Warframe (IGN k05h).

2 thoughts on “Decompile Java class or Jar container under Linux Mint / Ubuntu

Comments are closed.