I have a Runnable JAR file of selenium script forwarded from other location, now I want to use that same script for my project with some minor updates. How to do that? Can we open that in Eclipse and do updates/Edits on JAR File script?

  • If you want to make modifications - you need the sources. Does the JAR file contain sources and do you also have a build script? – Dakshinamurthy Karra Sep 20 '18 at 11:50
  • @DakshinamurthyKarra I have only JAR Files – Promila Sep 21 '18 at 10:35

Jar file contains java classes - the files which are converted from the source code to the bytecode. You cannot easily change that. There is a way to decompile classes to the source. However:

  • That might not help you even if you're a skilled developer if a bytecode was handled by an obfuscator.
  • Decompilation requires quite a big degree of understanding of what is happening and why. If you are ready to dive deep into that, check this SO post.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.