leibnitz27 / cfr

This is the public repository for the CFR Java decompiler
https://www.benf.org/other/cfr
MIT License
2k stars 258 forks source link

How do I decompile using CFR's CFRDriver? #347

Open drori200 opened 1 year ago

drori200 commented 1 year ago

Up until now i have been executing the jar using ProcessBuilder but it proves to be inconsistent as sometimes libraries end up not being considered at all. Because of that i decided to try and use invoke the decompilation from code but i have become really confused. So far i know that i need to create a CFRDriver instance using CFRDriver.Builder and provide the options i need (i only need the extraclasspath option) but i am kind of lost on how to use it as there's no "proper" documentation