set java_home env variable. There are any references about set java_home env variable in here. you can look below.