View RSS Feed

My Java Tips

  1. Creating JAR files

    by , 11-12-2011 at 06:25 PM (My Java Tips)
    JAR (Java Achieve Files) are compressed files that are used to bundle multiple files into a achieve file so the distribution can be managed easily. In this post, I will write about how to create JAR files.

    JDK includes a JAR tool that is used for creating JAR files. Command to use is:
    jar cf jar-file input-file(s)

    c indicates that we want to create a JAR file.
    f indicates that ouput should go to the file
    jar-file is the name of the jar file that ...
    Java SE