Java source codes for PJ1 applications