Since you did not provide the STAF PROCESS START request that you are submitting nor your shell script, I can't tell you what the problem is other than it is not finding a Java class named StartNC as the error messsage says. So, my guess is that the shell script is not correctly setting the CLASSPATH environment variable to a path to class StartNC.
Note that a process started via STAF is run in the environment that STAFProc is running in (e.g. uses its environment variables (not environment variables of the command prompt from which the PROCESS START request was submitted). You can set/change environment variables for a process using the ENV option(s) on your STAF PROCESS START request as described in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV. Also note that each process started via STAF runs in its own environment so that if one process sets environment variables, another process is not effected. Here's an example of using the ENV option to update the CLASSPATH environment variable when starting a process. STAF machine1 PROCESS START SHELL COMMAND "/tests/myTest.sh" ENV "CLASSPATH=/tests:{STAF/Env/CLASSPATH}" -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 From: "Yashaswi S. Kumar" <yashaswi.ku...@sanovi.com> To: Sharon Lucas/Austin/IBM@IBMUS Date: 05/19/2011 05:06 AM Subject: Re: [staf-users] master and slave approach - STAF/STAX on all the master and slave machines. HI, I am running the java code within a shell script. The shell script also sets the classpath for java to run before the execution. I am not able to run the script through the process service. Kindly help. This is the respone Response -------- { Return Code: 1 Key : <None> Files : [ { Return Code: 0 Data : Exception in thread "main" java.lang.NoClassDefFoundError: StartNC } ] } Yashaswi.S.Kumar Software Engineer Sanovi Technologies Pvt. Ltd. * yashaswi.ku...@sanovi.com ' +91 80 4076 2044 À +91 97423 89087
<<image/jpeg>>
------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users