java class main error for crontab -
When I try to run the exe jar file in Unix: it runs fine without any errors, but when I try to add it in the crontab I am getting the error below: I'm not sure What is the difference between running a freedom and using a crossnote? Does anyone know
$ Java Jar /tnpm_pm_test.jar
* / 15 * * * * / Usr / bin / java java-java / home / user1 / tnpm / tnpm_pm_test.jar & amp; & Gt; / Dev / null
formula exception "main" JavaklangkNoClassDefFoundError: because the Java Version .lang.ClassNotFoundException: low java.net.URLClassLoader.findClass (URLClassLoader.java:205) on java.net.URLClassLoader $ 1.run (URLClassLoader.java:217) java.security.AccessController.doPrivileged (Native method) least version java.lang.ClassLoader.loadClass sun.misc.Launcher not $ AppClassLoader.loadClass (Launcher.java:294) on java.lang.ClassLoader.loadClass (ClassLoader.java:323) (ClassLoader.java:268) Could get main category: the version will exit the program
whereis Java = Java: / usr / bin / java / etc / java / usr / lib / java / usr / share / Java Java = / usr / bin / You must be an administrator to place the output in / dev / null. You must be an administrator to place the output in / dev / null. So put it in a file in your home directory and sometimes add an entry in crontab to delete the file.
Comments
Post a Comment