Decompiler supporting Java 8? [closed]
Asked Answered
H

1

24

I see that most of the Java decompilers support till Java 7.

Are there any decompilers which support Java 8 - especially Lambda expressions?

I want to run such a decompiler in my ubuntu machine.

Hermineherminia answered 10/10, 2014 at 17:2 Comment(4)
JD doesn't seem to support Java 8 fully. Its online decompiler giving error! This can be found at jd.benow.caHermineherminia
Trying to run JAD but getting following error: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directoryHermineherminia
I don't know why the earlier answer suggesting JD and JAD decompilers got disappeared from this thread...Hermineherminia
Luyten decompiler providers good java 8 support and had GUI viewer github.com/deathmarine/LuytenBibliolatry
M
41

Procyon and CFR both support Java 8 language features, including lambda expessions and method references.

Mesial answered 10/10, 2014 at 20:54 Comment(8)
Excellent! Both of the decompilers support almost Java 8. Tested both of them. CFR seems to support more features or stable than Procyon. Especially streams feature in Java 8 got decompiled perfectly with CFR as against with Procyon.Hermineherminia
Procyon console outputs with syntax highlight as against plain text output by CFR.Hermineherminia
If I may ask, what worked better with CFR? I am the author of Procyon and would appreciate feedback if you ran into less than optimal results. Feel free to post to our issue tracker on BitBucket!Mesial
I have raised an issue regarding this in BitBucket: bitbucket.org/mstrobel/procyon/issue/214/… Thanks @Mike Strobel for your answer.Hermineherminia
I just 'java -jar cfr_0_115.jar Logout.class' and worked nicely.Greer
Java Decompiler Gui for Procyon: github.com/deathmarine/Luyten/releasesWhirligig
I don't understand why the topic is closed - Thanks Mike; CFR really works nice for me.Colwin
CFR has better support for JDK >= 8Toronto

© 2022 - 2024 — McMap. All rights reserved.