This is a reference implementation of the shadow mapping algorithm in Java and OpenGL.
This is not meant to be a tutorial in order to understand shadow mapping. See the links below for sites where shadow mapping is explained in detail.
Download
There are 3 possibilities to watch the shadow mapping implementation in action: