Reputation: 1
I have a Java program someone else wrote and I'd like to "decompile it" into its sources so I can modify its code. I have tried to do it and have decompiled a jar but when I try to recompile the Java files into jar's I get a bunch of dependency issues because I do not have the source files for the dependencies(although I have some of them but it doesn't seem to help).
Is there any program where I can drag and drop the Java exe or install directory and it will, I guess, decompile everything so I can modify some of its sources and recompile it? I've done this before but can't recall what app I used. The original program is written in eclipse.
Upvotes: 2
Views: 907
Reputation: 9935
I would like to suggest to used jd-gui.exe. It can easy to decompile the jar file and content will see clearly ...
Upvotes: 0
Reputation: 533492
The code you are attempting to re-compile has dependencies on classes you don't have.
Rather than re-compiling the whole jar, you only need to re-compile the classes you changed.
If these classes depend on classes you don't have you can create stubs for those classes which will allow you to compile the classes you changed.
Upvotes: 2