View Single Post
Old 8th February 2008, 09:14
shoaibahmedbaig shoaibahmedbaig is offline
Junior Member
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to run jar file using cron?

hi guys ,

i want to run jar file using crontab -e
here is the following :

my jar file is in my home directory which is :


I m using IBMJava2-142-ia32-SDK-1.4.2-8.0.i386.rpm which is installed in


now i want to schedule my jar file to run every monday at morning .

here is my cron entry :

30 11 * * * /opt/IBMJava2-142/bin/java -jar /home/shoaib/my.jar

could u please tell me wats wrong with that command and my back-end database sever is IBM DB2 9.0.

this command is run normally but when i schedule it through cron it didn't run, waiting for your response .


Reply With Quote
Sponsored Links