add java to index