File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How do I package stuff? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do I package stuff?" Watch "How do I package stuff?" New topic

How do I package stuff?

Sheldon Plankton
Ranch Hand

Joined: Feb 11, 2004
Posts: 33
Okay I am not getting it ... what I am supposes to do to create packages and use them?

What should I be doing here?
Jean-Francois Briere
Ranch Hand

Joined: Mar 03, 2004
Posts: 101
1- In JAVA the convention is to name packages with a starting lower case letter.
2- It is also the convention to name classes with a starting upper case letter.
3- For the JAVA class files that are located in folders or archives, their location in
the folder's hierarchy must follow their package names:
class a.b.c.D ( class D in the package a.b.c ) must have its file located like this:
a- Rename '' to ''
b- Rename '' to ''
c- Edit the '' file so it should read:

d- Edit the '' file so it should read:

e- From the current root folder of this JAVA project, create a sub-folder 'fileLister'
f- Move the 2 .java files into that sub-folder.
g- From the current root folder of this JAVA project, do the following commands:
> javac fileLister/
> javac fileLister/
I agree. Here's the link:
subject: How do I package stuff?
Similar Threads
How do I download files?
Meyer's Java Prog study guide pg 381 ...
property files (Why does java make this so hard?)
reading byte array