add java configuration