Posted By:
yangontha_Maung
Posted On:
Thursday, June 13, 2002 11:16 PM
I am writing .png and .jpg files on Linux using from the command line java -Djava.awt.headless=true MyImageJavaFile and it is running as expected, creating the image files. However when I put it under cron (schedule), it does not run properly. It may be that the PATH is not defined properly. So in the schedule for normal java programs, I used to run like this, /usr/local/j2sdk1.4.0/bin/java MyJavaFile and it runs smoothly. But not /usr/local/j2sdk1.4.0/bin/java -Djava.awt.headless=true MyImageJavaFile I am not sure whether this can be called Linux or Java issue. Please help. thanks!
More>>
I am writing .png and .jpg files on Linux using from the command line
java -Djava.awt.headless=true MyImageJavaFile
and it is running as expected, creating the image files.
However when I put it under cron (schedule), it does not run properly.
It may be that the PATH is not defined properly.
So in the schedule for normal java programs, I used to run like this,
/usr/local/j2sdk1.4.0/bin/java MyJavaFile
and it runs smoothly.
But not
/usr/local/j2sdk1.4.0/bin/java -Djava.awt.headless=true MyImageJavaFile
I am not sure whether this can be called Linux or Java issue.
Please help.
thanks!
<<Less