![]() ![]() In my specific case, to make things as easy as possible, I wanted to only modify one. jar file completely recompiled and working with my application, I wanted to share here the steps that were missing in the previous answers. is it a so-called "executable" JAR that you launch using java -jar my.jar. It depends on what kind of JAR it is e.g. The (new) dependencies of the JAR don't necessarily need to be in the JAR itself. ![]() I guess that I have to add the libraries, but there is no extra lib directory. Therefore, when you make your changes and recompile, the resulting ".class" file could have unexpected / unwanted differences relative to the original. There is no guarantee that the Java code that it produces is a correct representation of the original class. unless you have the private key that was used when signing.ĭecompilation is often inaccurate. If the original JAR file was signed, you won't be able to re-sign the new JAR. You can do it using the command line jar tool see How to create a JAR file from the official Oracle Java tutorials.īut it there is no guarantee that what you are doing will actually work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |