This content has been marked as final. Show 3 replies
On my Solaris 11 server I have created an entry in the root user CRON tab to launch a groovy based application every weekend. The application runs fine under a non-root user. When run by CRON however, the following error message gets emited:
groovy: JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME
Which is weird, as I have the following lines at the end of my /etc/profile file:
Please advice me where to look for the cause of this problem.
Thank you in advance,