Problems With Cron & Java

software development

#1

Hello,

I’m trying to setup a cron job that relies on a java file. It’s currently setup as: java -jar /home/username/cron/file.jar

Of course, in the exact cron job, “username” is correctly filled in as is the name of the file. The problem is that there’s no output generated. No error. Is there something I’m doing wrong?

Thanks in advance!

Tim


#2

Does $JAVA_HOME need to be set?

eg. export JAVA_HOME=/usr/local/dh/java

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost