
| File | Size in bytes | Extract with ... |
|---|---|---|
| phase1.zip | 8,459 | unzip -a phase1.zip |
| phase1.tar | 30,720 | tar xf phase1.tar |
| phase1.tar.gz | 5,613 | gzip -d -c phase1.tar.gz | tar xf - |
| phase1.tar.bz2 | 5,480 | bzip2 -d -c phase1.tar.bz2 | tar xf - |
| phase1.jar | 8,532 | jar xf phase1.jar |
pos.jar [JAR; 7,013 bytes]
Run with:
java -jar pos.jar 1
Valid users are cashier and manager; valid barcodes are 0001, 0002, ..., 0007.
Includes the following:
Download it in one of the following formats:
Added a dump method to the com.boldin.db.DBFile class. Created a program, DBD.java that calls this method and can be used to view the store.dat and depot.dat files.
Each download includes three separate NetBeans projects. Please read the notes below.
Important Notes regarding the NetBeans Projects:
Because NetBeans supports only one main class per project, the applications were split into three projects.
Source code files are copied (not shared) between the three projects. As a result, any changes made to a file in one project must be copied to any other project that contains that file.
NetBeans is not able to run the RMI compiler (rmic) easily (i.e., requires hacking build.xml files!) You must, therefore, run rmic from a command prompt in the build/classes folder for the Store project. Then, you must copy the StoreServer_stub.class file to the src folder of the Terminal project.
You must run the RMI registry (rmiregistry) manually from a command prompt. Be sure to set up the CLASSPATH correctly — to the build/classes folders for both the Store and Depot projects.