问题
Im following Java SQL Adapter tutorial from IBM worklight. When I deployed both RSSAdapter and UserAdapter from sample code, the error console is
Adapter deployment failed: The adapter was built with a later version of Java than is used to run the server.
Im using JDK version 7. Howerver, I also try to downgrade JDK to verion 6, but it still doesn't work.
Image for error
回答1:
Try change compilance level.
The Java 8 compiler will produce class files in the Java 8 version of the class file format, and accept Java 8 source files. JRE 6 can't load this version, because it was created after JRE 6 was.
If you set the compliance level to "JRE 6", it will instead compile Java 6 source files into Java 6 class files.
Right click on the project, choose properties.
来源:https://stackoverflow.com/questions/29613396/worklight-java-sql-adapter-adapter-deployment-failed