Quick-and-Dirty Guide to Transforming the Bank Application into your Very Own Project

From Wiki**3

Revision as of 18:12, 24 October 2010 by Root (talk | contribs)

The bank application is very small and simple. Nevertheless, it already incorporates all major components needed for a larger application.

The following is a quick guide to start your project from the Bank sources.

The Goods

The following are the components of the bank application (these are the 2010/2011 editions):

Each package includes a makefile to compile and build the corresponding JAR archive. Note that the makefiles assume that all JAR dependencies reside in /usr/share/java (linux installation -- other environments may, and indeed should work, but are not covered in this text).

The bank application has a similar structure to the one needed for the OOP course programming project (but... be careful).

The Abstract User Interface Library: po-uilib

To unpack, compile, and install the uilib, do the following:

 tar xvfj po-uilib-201010151128.tar.bz2
 cd po-uilib-201010151128
 make

If you are unlucky enough not to have GNU tar, try it this other way:

 bzcat po-uilib-201010151128.tar.bz2 | tar xvf -
 cd po-uilib-201010151128
 make

Note that there is no "make install" command (the makefiles don't have that rule). To install, simply copy the po-uilib.jar file to some directory. Remember the name of this directory: we will simply call it JAVADIR. All makefiles assume that this directory is /usr/share/java (the default place for JAR files in Linux). However, you can put JARs anywhere. To change the place, simply do:

 JAVADIR=/some/other/directory/i/prefer/to/use/for/my/jars

This line can be set directly in the makefiles. Note that you will need writing privileges in that directory. If you have an RPM-based distribution, the following repository has up-to-date versions (example for openSUSE 11.3):

Note that this library does not need to be changed. If you think it does, either you found a bug (unlikely, but you never know...), or you are doing something wrong. In either case, seek help before proceeding into certain oblivion.