I have an issue with lucene starting when I boot up the server.

when I run the command ./indexserver start from shell
I get the following error:
./bin/indexserver-stop.sh: line 6: java: command not found

It does not work, but when I run ./lucene-install.linux and I choose the "upgrade option" the lucene server starts great...

I checked on the init.d and "icecore" & "indexserver" are listed.
I run chkconfig --add indexserver it adds it.

Please assist me with this issue.

Thank you