add java directory