Jar Decompiler?

I was looking through my past projects trying to find inspiration when I found one of my old projects. Its was discontinued and I really wanted to start it up again so I looked for the source, and to my surprise I had deleted it! I would recode everything but from the state the game was in at that time I would lose some priceless polish features and the amazing framework I remember building up for it.

So If anyone knows a Java decompiler where I can select a jar and decompile all the .class files in it I would love to hear about one. I had googled it before posting and for JD-GUI it sounded promising however it didn’t launch on my mac so I looked for another and didn’t find anymore that worked.

So I’d really appreciate it if one of you guys knows of one. Thanks!

~ Jake

Chances are, rebuilding an old project from scratch would increase code quality.

As for decompilers, here are some: http://stackoverflow.com/a/272550
(note: the SO question is 6 years old, check recency of answers)

there is a plugin for intellij idea 13. 14 got it build in.

I prefer this, JD-GUI. Also has plugins for Eclipse and IntelliJ.

http://jd.benow.ca/img/screenshot17.png

Would have wondered if he had even googled if he hadn’t found that one.

Sorry for my ignorance but how decompiler works? Isn’t it impossible to convert java bytecode into .class files?

yes.

The class files are java bytecode.

The decompiler turns it back into source code, which is possible in java because the bytecode retains quite a lot of high-level information.