Thursday, September 3, 2015

Jar file


  • Why do we create jar file?


    • Team has created Data Masking tool based on Java program. When you run the code, it will pick the file based on the script and goes to the specific column, and mask it.
    • The code picks the input values from the notepad where the filename, column name details are mentioned for data masking.
    • Java code is made jar file, so that everybody could use it. Platform independent.
    • Explanation:
      • Jar file is a zip file, it has java source codes and class files. Generally jar files are executable files and that is how they differ from zip files.
    • Jar files could be easily loaded to the code(by using commands). That helps the existing code for the enhancements.
  • Why we create jar file?
  • How to create jar file?
  • How to run jar file?





5 comments:

  1. JAR is only related to Java archive. So Jar is totally related to Java.

    ReplyDelete
  2. I have added external jar to my eclipse project and executed my program on my local machine. When I export eclipse project to my friend's machine, should I need to add jar files again to it(means I should have jar files exported separately) or I could directly run eclipse project from his machine(eclipse will make use of already added jar files that gets exported along with it)???

    ReplyDelete
  3. Jar -- is set of java class files, resources (excel, word ..) overall its package(folder of mentioned items). Its kind of zipping files related to executing project in java.

    Why jar --- I heard jar are created to share the project to others to use
    how jar is different from war files --- war files are related to server. .war files are used to deploy project onto server

    How to create jar ---- folder > jar -cf files

    ReplyDelete