how to set java as a service in cyberpanel and ols?

im trying to enable java already installed it but once i command

systemctl service java

it returns

java not found…

so how to set java as service??

hmmmmmmmmmm , what do you mean by java ?

like tomcat ?

yes