add java code and resources