Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

J2ME Interaction with C++ through KNI?  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a rather complex question that I was hoping to get some help on. Specifically
it relates to the J2ME (Java 2 Micro Edition) and its interaction with other elements
within a mobile device. I have a project in which 2 levels of a device have to
communicate. The top layers will utilize J2ME as well as SyncML (a program for
Over the air provisioning of software within a mobile device). The bottom layer will
interact directly with hardware through C++ (most likely).
My question arises with developing this layer inbetween the J2ME and the C++. I
need them to be able to access eachother somehow within this environment. If I
were using regular Java 2, I'd most likely use JNI (Java Native Interface). However,
since I'm using J2ME, it comes with a scaled down version of JNI called KNI. What
I really need to know are the limitations of KNI? Can I access data and functions
within my C++ module from J2ME through KNI? What are the other restrictions
that KNI places on accessability and functionality?
Additionally, are there any other means of accomplishing this dialogue between the
J2ME and C++? Namely, what about the use of sockets (Java and C++ sockets to
share data? Can this be done) or through the use of shared memory?
If anyone has any info on the above or can point me in the right direction that would
be greatly appreciated. My e-mail address is
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!