The way this traditionally works in UNIX is by using `make'.
For example, to rebuild the mail database you simply go to /etc/mail
and type
make
which does whatever is necessary.
Why not do it this way with gcj's dependencies? Just go into
/var/lib/gcj<blah> and run make? The makefile can then do everything
that is necessary, using make's dependency analysis.
Andrew.