You can follow these steps to modify your java class:
- Decompile the .class file as you have done and save it as .java
- Create a project in Eclipse with that java file, the original JAR
as library, and all its dependencies - Change the .java and compile
- Get the modified .class file and put it again inside the original
JAR.