Aplicação exemplo (aplicação bancária em Java) para apoio à construção do projecto (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).
You may want to read the the quick and dirty guide (use at your risk!):