Is it possible to recover .java files from jar?

    1 answer 1

    Yes it is possible. There are two ways:


    1. Automatic

    1. Download JD-GUI Java Decompiler (cross-platform application)
    2. Install
    3. We use

    BUT: it works crookedly, so in practice it will be necessary to make corrections after it anyway.


    2. Manually

    1. Unzip the *.jar file
    2. Decompile *.class files (in IDEA for example)

    BUT: if there are many classes, the process will take a lot of time.


    Summarizing all the above, we recall the children's song:

    Stuffing cannot be turned back and the eggs cannot be put back into the eggplant ..

     //На мотив песни Аллы Пугачевой - Жизнь невозможно повернуть назад