i setup a crontab job to run a php script, php ~/Documents/workspace/tools/src/main/php/testcron.php > mylog
and the log file shows: JAVA_HOME is not set.
i tried export and saw JAVA_HOME="/Library/Java/Home"
i changed it to JAVA_HOME="/usr/bin" but if i open other terminal it still showed as 'Library/Java/Home' and also it complain cannot find java_home if i run php script in the same terminal that i changed the JAVA_HOME, anyone know what's wrong? thanks. im using Mac