Two Laptop Bag
The moose likes Beginning Java and the fly likes Packages, class path etc... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Packages, class path etc..." Watch "Packages, class path etc..." New topic

Packages, class path etc...

Ryan Waggoner
Ranch Hand

Joined: Jun 27, 2007
Posts: 75
I am looking for a resource that look at java's file structure.

Getting into detail about jars, packages, and class path info.

Anyone have something laying around?

marc weber

Joined: Aug 31, 2004
Posts: 11343

See if these Sun Java docs help...
  • How Classes are Found
  • Setting the class path (also includes "Understanding the class path and package names")

  • [ July 31, 2007: Message edited by: marc weber ]

    "We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
    Mark Garland
    Ranch Hand

    Joined: Nov 11, 2006
    Posts: 226
    This might sound silly, but I always remember the structure of a class file using "PIC" (think picture).

    P - Package delaration
    I - Import statements
    C - Class definition.


    28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
    Stan James
    (instanceof Sidekick)
    Ranch Hand

    Joined: Jan 29, 2003
    Posts: 8791
    After reading those other resources, see if this tutorial makes things better or worse.

    A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
    Raghavan Muthu
    Ranch Hand

    Joined: Apr 20, 2006
    Posts: 3381

    The link given by you is excellent and it would be really helpful to the people at the beginning stage Stan James.

    Nice of you.

    Everything has got its own deadline including one's EGO!
    [CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
    Ryan Waggoner
    Ranch Hand

    Joined: Jun 27, 2007
    Posts: 75
    Thanks for the help.

    I have PIC in my head now

    Stan that was a great link, it made things better, thanks
    Mark Garland
    Ranch Hand

    Joined: Nov 11, 2006
    Posts: 226
    You're welcome.
    I agree. Here's the link:
    subject: Packages, class path etc...
    It's not a secret anymore!