Java server for APK generation

Hi,
Ive installed script to generate APK , i installed JavaJDR 1.8 , to centos server,

i created Servlet engin and script handler pointing to localhost:8080 as a path.
and set jsc as handler…

but yet my script shows java not installed …!!?

shall i do same in vhost level?? or whats the advise?