In this lesson we create our project file structure including all the Java source and class files folders required for the Case Study.
The first thing we are going to do in our setup for the Case Study is to make a base folder called
_Case_Study in the root directory of our hard drive which we can put all our other folders into.
Lets create a folder for our Case Study files, in Windows this would be:
double click My Computer icon
double click C:\ drive (or whatever your local drive is)
right click the mouse in the window
from the drop down menu select New
click the Folder option and call the folder _Case_Study and press enter.
_Case_Study folder we will create separate folders to hold our source files and our compiled byte code and these will be called
So after creating these folders your directory structure should look something like the following screenshot:
Creating Our Package Folders
Now we need create folders for our packages within the
src directory, we don't need to do this for our
classes directory, as this can done during compilation of our code
-d option, which we will discuss when we compile.
We worked out in the last lesson after investigating the proposal that we need packages for:
- The code to process the manufacturer file and requests sent from users of the GUI, which is the model element of the MVC pattern.
- The client code, which is our GUI and is the view element of the MVC pattern.
- The services code, which incorporates our local and remore services and is the controller element of the MVC pattern.
- We will also need a package for placing our testing classes in.
Ok, lets create these five new folders:
testing within our
So after creating these folders your
src folder directory structure should look something like the following screenshot:
That's all we need to do as far as setting up the folder packages for the project goes.
In the next lesson we write the code to create a test Manufacturer file to be used with the Case Study. We want the file to have a single header record with a Manufacturer file number, followed by data records that contain the record information repeated until the end of the file.