Hi @saurabh_singh,
Have you installed Java Extension for automation ?
Please check this link. UiPath and Java
Regards, V