October 18th, 2003, 07:56 AM
-
how to schedule java app in cron
Hi,
i want to schedule a java application in cron. I have scheduled a script in crontab , where i set the path, classpath and execute application...... java Test
But i am getting an error , which says that the imported class files are not found. I have included the path of .jar (imported file ) in the classpath, still im getting this problem.
Why is cron not able to locate those imported classes in .jar, when they are included in classpath. Can ne body please help me?
Thanks,
arshi.
October 20th, 2003, 08:02 PM
-
The cron job doesn't have the same environment as your login. I have a feeling that you haven't set the CLASSPATH within the cron file. Please post your cron file here and we can verify that.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo