Yasir,
It looks like you have set everything up correctly.
> 1- wrapper
> 2- TestApp (it is the script file 'sh.script.in' that is renamed, I
> changed the values for APP_NAME & APP_LONG_NAME)
execute the following to verify that the executable x bit is set for
both wrapper and TestApp.
# ls -al
> Now when I try to run my application by following command (current
> directory is bin):
>
> #TestApp console
>
> I got the following output:
>
> TestApp: not found
This is an error from the shell and has absolutely nothing to do with
the Wrapper.
When you execute a script that is located in the current directory on
UNIX systems.
(Or any command not on the path)
you must specify the location of the script. Since you are in the bin
directory
execute the command as follows:
# ./TestApp console
> On the other hand if I try to run my application using following
> command written in another script file (runApp.sh) , it works fine:
>
> java -cp TestApp.jar TestAppMain
This works because the java executable is most likely located on your PATH.
If that was not the problem, write back,
Cheers,
Leif
|