title: Unable to load AWS credentials from the /AwsCredentials.properties file on the classpath
body: <p>Using this code for setting the class path </p>
  
  <pre><code>AWSCredentialsProvider credentialsProvider = new ClasspathPropertiesFileCredentialsProvider();
  ec2 = new AmazonEC2Client(credentialsProvider);
  </code></pre>
  
  <p>Below is the format for AwsCredentials.properties file </p>
  
  <pre><code># Fill in your AWS Access Key ID and Secret Access Key
  # http://aws.amazon.com/security-credentials
  accessKey = keyHere
  secretKey = secretKeyHere
  </code></pre>
  
  <p>Below is the exception I am getting</p>
  
  <pre><code>Exception in thread "main" com.amazonaws.AmazonClientException: Unable to load AWS credentials from the /AwsCredentials.properties file on the classpath
  
      at com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider.getCredentials(ClasspathPropertiesFileCredentialsProvider.java:81)
      at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:8359)
  </code></pre>