you need to be at the place where the run.sh is located. You can't just put it on the path and start it.
Someone made a request to have a hORNETQ_HOME and have it started from anywhere.
Thank you for your reply.
run.sh is located at /home/HornetQ/bin/run.sh
And I started run.sh under the path of bin.
[root@MyPC bin]# ./run.sh
I will try it again , but I do not think it is the reason.