jfalexvijay
jfalexvijay

Reputation: 3711

Integrate C and JAVA in Blackberry

What is the best way to integrate C with JAVA for Blackberry app?

In core java, we can use JNI for integration. But in Blackberry app ?

Thanks in advance.

Upvotes: 2

Views: 702

Answers (2)

Marc Paradise
Marc Paradise

Reputation: 1939

You can't integrate C, as RIM does not expose any API for the platform. Since BlackBerry use a j2me-compliant JVM, JNI is not exposed.

Prior answer is partially correct - you may write code that uses only the J2ME API, but you can also use RIM's own Java API for better/more advanced features and functionality.

Upvotes: 3

Michael Donohue
Michael Donohue

Reputation: 11876

There's no equivalent to JNI for BlackBerry apps. Everything must be written in j2me. I suggest you ask a new StackOverflow question about whatever it is you are trying to accomplish with C code in your BlackBerry app.

Upvotes: 0

Related Questions