mercredi 29 avril 2015

Upload an Object Using the AWS SDK for Java

Hi i am using the following code from AWS documentation:

http://ift.tt/1lRPa8S

And i have used the following jars : Jars used

And i am getting the following error :

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:58) at UploadObject.main(UploadObject.java:17) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 2 more

Any help would be appreciated for the same. I have tried adding the common logging jars but no luck.




Aucun commentaire:

Enregistrer un commentaire