Worklight, Java SQL Adapter, Adapter deployment failed

可紊 提交于 2019-12-13 04:07:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!