java class main error for crontab -


When I try to run the exe jar file in Unix:

  $ Java Jar /tnpm_pm_test.jar  

it runs fine without any errors, but when I try to add it in the crontab

  * / 15 * * * * / Usr / bin / java java-java / home / user1 / tnpm / tnpm_pm_test.jar & amp; & Gt; / Dev / null  

I am getting the error below:

  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  

I'm not sure What is the difference between running a freedom and using a crossnote? Does anyone know

  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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -