Results 1 to 4 of 4
  1. #1
    mew
    mew is offline Member
    Join Date
    Nov 2007
    Posts
    70
    Rep Power
    0

    Default Why use JAR file

    I have a basic question. Why we use JAR files? If the purpose is to compress the package, ZIP format is there. Why Java has its own JAR format?

    I see a lot of JAR files in Java applications and frankly, I think it just makes things complicated. I believe that everything can be done even without JAR files.

  2. #2
    spadmore is offline Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default

    JAR Is an archive and is "known" by servlet containers etc. The major advantage is for standardization and ease of deployment. You'll get to appreciate it as you do more production code ...

    - Shelon Padmore

  3. #3
    collins is offline Member
    Join Date
    Dec 2007
    Posts
    3
    Rep Power
    0

    Default

    JAR file consists of class files. These files will be used by the application at Runtime. These are advantageous b'coz the application's performance improves since it need not compile the source code while running, Security of the application will be better since the class files code cannot be altered easily. These are the standards followed by the Java.

  4. #4
    Join Date
    Dec 2007
    Posts
    24
    Rep Power
    0

    Default

    u know i know the zip format files but java dont,java knows jar files..
    suppose u created 2 classes in 2 diffrent packages p1,p2 . to access that classes into another class in any deffrent package waht can u do..? u hav 2 export those 2 packages into ine jar file and put that jar file in somewhere in the system ,and set the class path to access that jar file.. and import the packages in the program..like that jars works

Similar Threads

  1. count character in text file as input file
    By aNNuur in forum New To Java
    Replies: 7
    Last Post: 03-25-2010, 05:01 PM
  2. Replies: 2
    Last Post: 04-07-2009, 07:25 AM
  3. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  4. Converting text file(.txt) to JPG file(.jpg) in java
    By javadeveloper in forum Advanced Java
    Replies: 0
    Last Post: 11-09-2007, 05:22 PM
  5. Regarding conversion of Image file to Video file
    By RamaDeviMsc in forum Advanced Java
    Replies: 0
    Last Post: 06-25-2007, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •