Steps to Creating Packages
(for Windows)

1. 	Create a public class, say, Time1 and store it as Time1.java into A:\CS170 directory (folder) with the following statement added at the beginning of the program:

	package java.classfiles;

2. 	in A:\CS170 prompt of the MS-DOS, type the following command to compile your Time1.java:

	A:\CS170  javac -d c:\jdk1.2.1\jre\classes Time1.java

After the successfully compilation, the C:\jdk1.2.1\jre\classes contains a directory called java, java contains a directory called classfiles.  In the classfiles directory, you can find the file Time1.class. 

3.  Write the Java driver program, say , TimeTest.java with import statement at the beginning of the program that specifies the directory created in Step 1 as follows:

	import java.classfiles.Time1;

	and save it as a java file in A: drive.  For example,  TimeTest.java in A: drive. 

4.  Compile the file created in Step 3 using javac, for example, at A: prompt, type:

	 javac TimeTest.java

javac will automatically search from the directories C:\jdk1.2.1\jre\classes\java\classfiles that is specified in TimeTest.java (Java compiler will automatically start search from C:\jdk1.2.1\jre\classes and java\classfiles directory is specified in import statement in TimeTest.java).
 
5. 	at A: prompt, execute TimeTest.class if it is a Java application as follows:

java TimeTest