Difference between revisions of "Quick-and-Dirty Guide to Transforming the Bank Application into your Very Own Project"

From Wiki**3

(The Abstract User Interface Library: po-uilib)
Line 38: Line 38:
  
 
* http://download.opensuse.org/repositories/home:/d4vid:/po10/openSUSE_11.3/
 
* http://download.opensuse.org/repositories/home:/d4vid:/po10/openSUSE_11.3/
 +
 +
Other distributions may become supported (but remember: tests are run '''only''' on openSUSE 11.3). Check:
 +
 +
* http://download.opensuse.org/repositories/home:/d4vid:/po10/
  
 
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.
 
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.

Revision as of 18:17, 24 October 2010

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):

Other distributions may become supported (but remember: tests are run only on openSUSE 11.3). Check:

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.