Cmake can't recognize ant and Java while build OpenCV with opencv_contrib

sdk tool 25.2, sdk platform tools 25, java 8, Does it work?