1 Reply Latest reply on Aug 3, 2010 4:38 AM by jaikiran pai

    Shutdown.sh Script not finding Java Home

    J J Newbie

      Hi all,


      We are invoking the shutdown.sh through custom code, which calls java.lang.Runtime.getRuntime.execs(args), where the arguments passed are the ones used by Shutdown.sh. This invokes the Shutdown.sh script but fails to find the correct Java_Home when on this line of the script :"exec $JAVA \".


      When I use the same args, directly to invoke Shutdown, it works.


      I was wondering why the Shutdown.sh script cannot figure out the JAVA_Home for the running instance of JBoss? What needs to be done here (except passing java_home as an arg)?


      I have checked the environment settings, Java_home is defined there. I have also defned it in run.conf. I am on Linux, JBoss 5.1.0.