add java sample app