decompiler_path = "C:/tools/cfr.jar" current_file = notepad.getCurrentFilename() if current_file.endswith(".class"): output_dir = os.path.dirname(current_file) cmd = f"java -jar decompiler_path current_file --outputdir output_dir" subprocess.run(cmd, shell=True) decompiled_java = current_file.replace(".class", ".java") notepad.open(decompiled_java)
For most users, offers the best balance of modern Java support and integration. java decompiler plugin for notepad
(Press F6) that tells Notepad++ to run the decompiler on your current file. A typical script might look like this: java -jar "C:\path\to\cfr.jar" "$(FULL_CURRENT_PATH)" Use code with caution. Copied to clipboard decompiler_path = "C:/tools/cfr
Using a Java decompiler plugin for Notepad++ offers several benefits: shell=True) decompiled_java = current_file.replace(".class"
SET DECOMPILER = C:\decompiler\fernflower.jar SET OUTPUT_DIR = $(CURRENT_DIRECTORY)\decompiled_temp NPP_CONSOLE OFF java -jar $(DECOMPILER) -dgs=true $(CURRENT_DIRECTORY) $(OUTPUT_DIR) npp_open $(OUTPUT_DIR)\$(NAME_PART).java