Project Setup Instructions for Java SDK, Kawa, and Initial Code

 

  1. Download Java SDK (latest Version 1.3) and Documentation from http://java.sun.com/j2se/1.3/
  2. Download Kawa (latest Version 4.1) from http://www.tek-tools.com/kawa/
  3. In Kawa under Customize–Options, set JDK, Kawa, & Advanced Paths as below

 

 

 

 

  1. Download initial project code (op2003-4.zip) from Prof. Bergin's site and unzip it.
  2. Download Junit32.zip from http://www.junit.org/ to give us a testing framework.  Unzip it and find the path to junit.jar.
  3. In Kawa create a new project by Project-New, give it a file name, and add the source code files to the project.  Under Project-Classpath click on Add File nd add junit.jar to the classpath.  Under Project-Compiler Options, check Compilation output directory and set the output files directory to the directory containing the source code.
  4. In Kawa, right click on OrderEntry.java and click on Main Class which puts a red box around that module indicating that it contains the main class to run.  From the toolbar, click on Rebuild All and everything should compile without errors.

 

 

  1. From the Kawa toolbar, click on Run Java which should bring up the OrderEntry form.  Enter customer number “C5002” which should bring up the customer information as shown below.  This part works so close the OrderEntry form.

 

 

  1. Now right click on InvoiceTest.java and click on Main Class which puts a red box around that module indicating that it contains the main class to run.  From the toolbar, click on Run Java to get the message “OK (2 tests)” as shown below

 

 

10.  Finally, do the same for OrderItemTest.java to get “OK (2 tests)” and then SystemTest.java to get “OK (4 tests).”  Congratulations, you have successfully completed the setup and testing of the initial project code!