Originally posted by fmohideen76
If I will start the tomcat jakarta manually , then it is working fine
Wait, did you write the two lines into the file exactly like that? If so, just get rid of the "#" in front of each one (the comments).
Forgive me if this isn't your problem.
Also, you don't need to cd to the directory first and then execute it, you can just write:
Just make sure the script is executable and you're fine.