Unable to find shared components directory. JRE location is not specified in options. JRE location is unknown

Error code -10143
Error constant EL_JAVA_COULD_NOT_FIND_JRE
 Probable cause