The java-source requires jdk1.5.
JAVA_HOME should be set to correct path before building the source.
# export JAVA_HOME=/opt/jdk1.5
# export PATH=${JAVA_HOME}/bin:${PATH}
Building with make (and Makefile.opt)
# make -f Makefile.opt
Building with ant (and build.xml)
# ant
# ant run_example