I've a JAR file (which I will call the original JAR file) which includes some
java classes and some other jar files. I need to extract one of the java classes to make some changes to it and put it back into the original JAR file.
I am thinking to de-compile the original JAR file using a Java De-compiler, and extract this java class. This will get me the java file. After making the changes for this java file, I'll recompile this java file, and will add the class file back to the original JAR file.
Questions:
1. Am I doing it right to de-compile the original JAR file just to get the java file I need?
2. If so, I need to re-archive the original JAR file with this newly updated java file, how do I do that? Is there a tool to re-archive?
Thanks in advance for your assistance.
Lin