Raj, You need to set(export) the CLASSPATH and the PATH in run_prodstats.sh
Regards -----Original Message----- From: Kairam, Raj [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 12:06 AM To: JDJList Cc: Kairam, Raj Subject: [jdjlist] problem running an XSLT program as a cron To any of you on HP-UX 11 using the xalan-j_2_3_1 to do an xml to html conversion .. As root on HP-UX 11 box, I try to run a script as a cron job " 25 14 * * 0-6 /home/meta32/myxslt/run_prodstats.sh" -rwxrwxrwx 1 root sys 280 Aug 14 17:11 /home/meta32/myxslt/run_prodstats.sh The /var/mail/root contains the following error message indicating the process failed to run. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xalan/xslt/Process The shell script run_prodstats.sh contains just thes lines .. #!/usr/bin/sh cd /home/meta32/myxslt /opt/java1.3/bin/java org.apache.xalan.xslt.Process -in ../myxsql/prodstats.xml -xsl StatsStyle.xsl -out /usr/local/apache/htdocs/Metaphase/prodstats.html ( all on one line ) The same command on command line works correctly. root@m020cad3:/home/meta32/myxslt>/opt/java1.3/bin/java org.apache.xalan.xslt.Process -in ../myxsql/prodstats.xml -xsl StatsStyle.xsl -out /usr/local/apache/htdocs/Metaphase/prodstats.html ( all on one line ) I will appreciate if any one could help me with this situation Thanks Raj To change your membership options, refer to: http://www.sys-con.com/java/list.cfm ---------------------------------------------------------------------------- This message contains privileged and confidential information and is intended only for the individual named. If you are not the intended recepient you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and immediately delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------------------------- To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
