开发者

Invoking Native Code with Java ME

From what I read, Java Native Interface is not supported by the Java ME platform. What are some other possible way for Java ME applications to reu开发者_运维问答se existing native libraries?


Not sure how feasable this is on mobile platforms but I would wrap a native executable around the C/C++ libraries and let the executable expose a lightweight RPC protocol based on something like Hessian or JSON-rpc or perhaps a basic HTTP and rest.

This comparision of lightweight web servers might get you started if you want to go the HTTP+REST route

http://en.wikipedia.org/wiki/Comparison_of_lightweight_web_servers

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜