Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Location
    Raleigh
    Posts
    8
    Rep Power
    0

    Default Java Packages/Jars

    I don't know if I'm posting in the appropriate forum so moderator please move me if I'm not.

    Hello fellow Java programmers,

    I have a few questions on the fundamentals(?) of Java class/Jars we import to our programs.

    First, I think I know the basic concept of importing a Jar into a program (somewhat): To instantiate objects of classes from the respective Jar to use their methods and more. Well, many imported classes have many useful methods and such to use for programs. I was given a concept of how many classes there are to a particular package, and the tons of methods there are within the classes. For a newbie Java programmer like myself, I'd like to know every method from every class so I could properly strategize what to import and use when making a program. The problem is the imports that contain "method tools" are soooooo expansive, perhaps endless? Well I'd like input from ya'll to see if that thought is somewhat true; is it really endless?

    I would also really really appreciate any references to websites (or books) that elaborate on what particular imports (like java.lang, javax.swing , java.awt, java.util, etc.) contain and how the classes can be used in programs for begainners like me.

    If my perception of imported Jars and such is wrong, please correct me because I'd love to learn. For those who do provide me great feedback, I do have cupcakes I'm willing to trade for knowledge!

    Thanks for your time,
    Silentstormz

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,390
    Rep Power
    25

    Default

    Probably the new to java would be a better location.
    importing a Jar into a program
    You don't do this. There's an error here in your thinking.
    The import statement tells the compiler where it can look for class definitions. Classes are often placed in jar files for ease of control and usage, but they don't have to be.
    I'd like to know every method from every class
    Start reading the API doc. Unless you are a very fast reader, you'll never make it. Start with the common ones and expand as needed.

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by Norm View Post
    Unless you are a very fast reader, you'll never make it. Start with the common ones and expand as needed.
    I think Norm may be wrong here. Even if you are a very fast reader, folks add more libraries all the time. I don't think you can ever catch up.

  4. #4
    Supamagier is offline Senior Member
    Join Date
    Aug 2008
    Posts
    384
    Rep Power
    7

    Default

    I wish you very good luck: Java 2 Platform SE v1.3.1

    There are ~2000 classes and each of them has at least 20 methods. That would make a total of ~40000 methods.

    Have fun.
    I die a little on the inside...
    Every time I get shot.

  5. #5
    Join Date
    Sep 2008
    Location
    Raleigh
    Posts
    8
    Rep Power
    0

    Default

    yeah, now that I grasped a concept of an "API" and all that's out there....OMG...

Similar Threads

  1. How to create a signed jars
    By mgrprasad90 in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 08-23-2008, 03:38 PM
  2. Replies: 0
    Last Post: 08-19-2008, 04:44 PM
  3. Preblem with JARs
    By bizmut in forum Eclipse
    Replies: 1
    Last Post: 06-04-2008, 05:41 PM
  4. Replies: 3
    Last Post: 02-12-2008, 11:03 AM
  5. how to find unused jars??
    By orchid in forum Eclipse
    Replies: 4
    Last Post: 06-08-2007, 10:35 AM

Posting Permissions

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