I made a cron job via panel to run a .jar file.
I added this in commands to run:
/usr/bin/java -jar /home/myuser/myprogram.jar
and i got this error:
Exception in thread “main” java.lang.NoClassDefFoundError
It works fine when i run it via SSH but it doesn’t when i try via cron job.
Does anybody know how i can do it?