Search code examples
jmsamazon-sqs

Connecting to SQS with JMS using Java 1.6


I get an "Unsupported major.minor version 51.0 error" when connecting to SQS using the AWS's JMS SQSConnectionFactory in Java 1.6. It works in Java 1.7

I have not found any documentation which specifically says that it is imcompatible with 1.6 Has anyone managed? Any suggestions?


Solution

  • It looks like it's compiled for Java 7.

    You can download source code and compile it for Java 6.

    https://github.com/awslabs/amazon-sqs-java-messaging-lib

    You will probably need to do few changes in source code, for example remove diamond operator <> from some tests.

    When you open the page mentioned above, there is Minimum Requirements in README.md which specify that minimum version of java is 7.