Hello everybody,
I have a problem about running a java class with a cron :
I have Cron.txt file which has :
0,5,10,15,20,25,30,35,40,45,50,55 * * * * CronJava.txt
I have CronJava.txt wihich has :
cd ias/j2ee/SapAktarim/applications/SapAktarim/SapAktarim/WEB-INF/classes/;java -classpath $CLASSPATH main.SapAktarim
When cron works I get "help of java command" from my mail.
if i do it manually, cd to path and type
java -classpath $CLASSPATH main.SapAktarim it works without a problem.
When I place it in a cron, I get this situation.
Maybe cron can't see my user classpath info.
When I try a sipmle class which only system.out.println("Hello") it works with the cron ...?
I am new on Unix...
Helps appreciated...
Thanks a lot