JarEditor - IntelliJ IDEA plugin for modifying files in jar directly without decompression
Liubsyy
Posted on September 25, 2024
JarEditor liubsyy
IDEA plugin for modifying files in jar directly without decompression, including class and resource files.
Source code : https://github.com/Liubsyy/JarEditor
Features
- Edit class/resource file in jar directly without decompression
- Add/Delete/Rename file/directory in jar
- Search the contents of the jar package
- Copy/Paste file/directory to/from clipboard
- Support SpringBoot jar
- Support kotlin
- Export source jar
- Support class bytes tool : javassist
Quick start
1. Install plugin from marketplace
First install the plugin JarEditor from marketplace, IDEA at least version 2020.3
2. Edit and Build Jar
After installation , you can see a tab page to switch to Jar Editor in the .class decompiled file.
External jars: File->Project Structure->Libraries->Add Library , then you can see the decompiled jar.
After modification, click Save(Compile) to compile and save the currently modified java content.
Finally click Build Jar to write the compiled and saved class file into the Jar package.
Modifying the resource files in the jar package is also supported.
3. Class bytes tool
For obfuscated jars, the decompilation result is not satisfactory. In this case, you can use tools to directly modify the bytecode.
Click the Class bytes tool icon to select the tool
- Javassist : Field/method/constructor/static code can be modified/added/deleted (include inner class)
4. Other operations of JarEditor
In the project view of the jar package, right-click to see JarEditor->New/Delete and other operations, where you can add/delete/rename/copy/paste/export files.
Click the Search icon to search the contents of the jar package. If it is a class jar, it will be searched based on the decompiled content.
Posted on September 25, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.