Extract All imports from Jar Files

MetaMan

Heir
Customer
QA Engineer
This tool automatically extracts all import statements from the specified JAR files. It does so by extracting the .class files, decompiling them using CFR, and then gathering every line that starts with 'import'. The results are saved in a text file, with a progress bar showing the process.



CSS:
[SETTINGS]
output_folder = C:\Users\Your pc name\Desktop\Extract Jar Files
output_file = imports.txt
notepadpp_path = C:\Program Files\Notepad++\notepad++.exe
jar_files = scripts.jar, server.jar
 

Attachments

ty

btw, is possible export all files like .txt, my idea is create a private git for my IA, and auto create scripts for lucera
you mean the .class files should be converted to .java so that you can open them with notepad++ ?
 
  • Decompiles .class Files
    • Uses CFR Decompiler (cfr.jar) to convert each .class file back into a .java source file.
    • Saves the decompiled Java files while preserving their package structure.
  • Extracts import Statements
    • Scans each decompiled .java file.
    • Collects and saves all unique import statements into a separate text file.
 

Attachments

  • Decompiles .class Files
    • Uses CFR Decompiler (cfr.jar) to convert each .class file back into a .java source file.
    • Saves the decompiled Java files while preserving their package structure.
  • Extracts import Statements
    • Scans each decompiled .java file.
    • Collects and saves all unique import statements into a separate text file.
ty Mr. Meta, when I finish the ia, I share it for make easy the mods
 
Back
Top