Running a java program from crontab
1 posts in topic
Flat View  Flat View

Posted By:   Muhammad_Tareque
Posted On:   Wednesday, November 2, 2005 03:22 PM

I wrote a perl script, which in turn calls a java program. The perl script itself runs fine but fails when I am trying to run it from crontab. It says :"Can't find class browseManagerNew". Of course browseManagerNew is the class I am trying to run. I have changed the directory to the path of the class before running the class, with no use. Is there any environment setting I will need to do? Thanks in advance for the help.

Re: Running a java program from crontab

Posted By:   Jani_Kaarela  
Posted On:   Thursday, November 3, 2005 02:59 AM

You need to set the class path, either by setting the CLASSPATH env variable or using the -classpath command line arg. See Setting the class path.

About | Sitemap | Contact