add java files and Makefile