1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Rep Power

    how to schedule java app in cron


    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?

  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    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

IMN logo majestic logo threadwatch logo seochat tools logo