I have a .jar file; in this .jar file I have many .class files but no .java files for these class files. Is it possible to add functionality to the program? If so how?
since you don't have the java files, I take it you didn't write the original code.
if you did write the code, you could try to decompile it, and 'add' code, but if it isn't yours, I would just write some extra classes that use the methods you want to 'improve' and that fix your problem. or, you can write some new classes that extend the older ones, and overwrite the methods you want to see executed otherwise
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
Offline 2,487 posts
since Jan 2007