Java Reference
In-Depth Information
Review Exercise
You will export the shipment application to the F: drive and create a batch file to set the system variables and run
the application. Because all the setup work has already been done, you will see how relatively easy it is to install the
application.
1.
Export the entire ReviewEx project (including the source code) to the F drive.
2.
Start notepad and open F:\Employee_Application.bat.
3.
Save the file as F:\Shipment_Application.bat. (This is a little tricky. If you are having
problems, review the Creating a Batch File tutorial.)
4.
Because ShipmentApp is in a different location than EmployeeApp, change the set
classpath command to specify the correct location.
5.
Change the java statement so that ShipmentApp in c2 is executed not EmployeeApp.
Results of the Review Exercise
The results are:
1.
The two shipment class files are stored in F:\ ReviewEx\bin\c2.
2.
The Shipment_Application.bat file is stored on the F: drive.
Check that the Exercise Was Done Correctly
Finally, let's check it was done properly.
1.
Verify that on the F: the folders ReviewEx, bin, and c2 were created and that the two
shipment class files are contained within c2.
2.
Start a Command Prompt session.
3.
Enter F:\Shipment_Application.bat (or substitute the correct drive letter for your
computer) and press Enter.
4.
Verify that the five shipment variables are displayed.
 
Search WWH ::




Custom Search