File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes jar error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

jar error

keith w lockey
Greenhorn

Joined: Aug 23, 2010
Posts: 5
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
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

You already asked this in this topic. Please UseOneThreadPerQuestion


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

I'm confused is it Joe or Keith ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36514
    
  16
Wouter Oet wrote:You already asked this in this topic. Please UseOneThreadPerQuestion
Thank you for noticing. I shall close this thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar error
 
Similar Threads
error
java.lang.NoClassDefFoundError
package javax.servlet.http does not exist
EAR precompilation - java.lang.NoClassDefFoundError: weblogic/utils/compiler/Tool
jar file