Setting cron job of java program in Unix


java -classpath dir1:dir2:dirofclasses package.classname

If you are using mysql connection then you have to set mysql connector classpath also in command

eg:

java -classpath dir1:dir2:mysqlconnectorpath:dirofclasses package.classname

Related Posts: