The following error is shown when I try to run the SendFiles.jar.
Exception in
thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at com.sshtools.j2ssh.SshClient.<clinit>(Unknown Source)
at FileUtility.sFtp(FileUtility.java:203)
at SendFiles.main(SendFiles.java:142)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 3 more
My manifest file for this jar is below:
Main-Class: SendFiles
Class-Path: j2ssh-common-0.2.9.jar j2ssh-core-0.2.9.jar j2ssh-daemon-0.2.9.jar commons-logging.jar
Thanks,
Keith