title: AWS Java SDK credentials
body: <p>I am using the AWS Java SDK and trying to run some tests; getting:</p>
  
  <p>Unable to load AWS credentials from the /AwsCredentials.properties file on the classpath</p>
  
  <p>The credentials file @ ~/.aws/ is correct per AWS specs; 777'd it to ensure no access issues.</p>
  
  <p>I am not using any IDE plug-ins; per AWS docs, having a credentials file @ ~/.aws/ should suffice. Anyone have this working with just the SDK installed?  If I hard-code the file path into the ClasspathPropertiesFileCredentialsProvider() request it spits the error back with the path instead of the AwsCredentials.properties string, which doesn't exist anywhere (yes, tried making one of those in ~/.aws/ as well).</p>
  
  <p>Thanks much for any insights, code is below straight from Amazon:</p>
  
  <pre><code>import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider;
  import com.amazonaws.regions.Region;
  import com.amazonaws.regions.Regions;
  import com.amazonaws.services.sns.AmazonSNSClient;
  import com.amazonaws.services.sns.model.PublishRequest;
  import com.amazonaws.services.sns.model.PublishResult;
  
  public class SNS {
  
      public static void main(String[] args) {
          AmazonSNSClient snsClient = new AmazonSNSClient(new ClasspathPropertiesFileCredentialsProvider());
          snsClient.setRegion(Region.getRegion(Regions.US_EAST_1));
  
          String msg = "this is a test";
          PublishRequest publishRequest = new PublishRequest("my arn", msg);
          PublishResult publishResult = snsClient.publish(publishRequest);
          System.out.println("MessageId - " + publishResult.getMessageId());
      }
  }
  </code></pre>