Thread: .jar file

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    17
    Rep Power
    0

    .jar file


    Hi, I have a question. I got a Test.jar file from a Vendor. This Test.jar file contains 2 classes

    Class A{

    public void getTime()

    }



    Class B{

    public void setTime()

    }


    The vendor did not give me the A.class and B.class files. My question is how to I call those classes through Test.jar file. If I had .class files I know how to call them, but I had never used .jar .

    Please help.
    Thanks
    roman987@aol.com
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Pittsburgh, PA
    Posts
    3
    Rep Power
    0
    Do you mean your vendor shipped you A.java and B.java in the
    jar file? If so, you can extract them from the jar file and compile
    them to A.class and B.class by yourself. A jar file is really just a
    zip file so you can use tools like gunzip and WinZip.

IMN logo majestic logo threadwatch logo seochat tools logo