Java Decompiler Gui
Batch decompiling of Java files with JD-GUI - Stack Overflow
Java Decompiler Gui
Decompile Java JAR using JD-GUI tutorial for beginners
Videos
Command line decompilation for JD-GUI is a highly requested feature but it's not implemented yet. Perhaps you can use the following workaround in the meantime:
- jar (or zip) all the classes you want decompiled together.
- Launch JD-GUI and open your jar (zip) archive.
- Use "File" - "Save JAR Sources" menu option. It will decompile all classes from your archive and save their sources into another zip file.
I haven't seen any good open source JD-GUI alternatives with command-line support, unfortunately, so I think the above is as good as it gets for now.
I could recommend using Jad in conjuction with JadRetro - of course, it can't make Jad produce java generics but the decompiled source (including for Java 1.5+ classes) is functionally equivalent to the original (and back compilable in most cases).
Its use is simple:
jadretro *.class
jad .class
Notes:
1. JadRetro could be used in batch mode like this: jadretro ...
2. If you are using jad v1.5.8e (instead of the latest v1.5.8g) then "-c" option should be passed to jadretro (otherwise jad will refuse to decompile Java 1.5+ classes).