startup.sh ---> application.sh --> java command
I can modify startup.sh but not application.sh which calls java command. But I need a specify version a java.
So, I tried to solve this problem with :
- linux 'source' command ... BAD!!!
- linux 'alias' command... BAD!!!
But, I finally got a working solution by redefining a 'java' function before calling application.sh. GOT IT! When application.sh calls 'java', it invokes my function. Like this :
export -f java