Ok, so you create a file MyCode.java:
package myfirm.foo.project;
public class MyCode {
...
}
First of all, this file needs to be placed in a folder called project, which is in a folder called foo, which is in a folder called myfirm.
when you try to execute this class you need to have the root directory (myfirm) in the class path and you would say:
java myfirm.foo.project.MyCode
to execute it.
Hope this helps. Packages were very confusing for me at first.
Charles