add java relate command