This is the format I have used for API accesskey and secret key in AwsCredentials.properties
# Fill in your AWS Access Key ID and Secret Access Key
# http://aws.amazon.com/security-credentials
accessKey = accessKeyHere
secretKey = secretKeyHere
I got this exception when I tried to compile the code. I have already installed the toolkit for eclips and I am using eclipse kepler
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:56) at test_toolkit.GetS3Object.main(GetS3Object.java:19) 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)
I have tried many methods, also by adding commons-logging-1.1.3 jar then it gives httpclient exception , I searched a lot and then also added this jar httpcomponents-client-4.3.3 but nothing worked for me. Can some one please guide me that how I can start an EC2 instance from my local system and then I want to attach an EBS volume to it. Thanks