What version of Java is supported for Java callouts?

When trying to deploy a jar file to the gateway, I’m getting the error:

Error Deploying Revision 1 to dev

: Unsupported major.minor version 52.0.

So, it would appear that I’m building the class files with a newer version of Java than is supported.

How is the suggested way to proceed? It’s not allowing me to set the -target switch to specify a different compatible version.

1 Like

Sorry if I asked too quickly. I was able to use the following to get it to work:

javac -source 1.7 -target 1.7 ... ... ...
1 Like

Java 7 is required.

For future reference: http://docs.apigee.com/api-services/reference/supported-software