Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2008, 10:18 AM
Member
 
Join Date: Jun 2008
Posts: 1
vieestchien is on a distinguished road
KNI for CLDC
Hi everyone,

I am new to J2ME, so I would like to get some help from you guys. I am developing an application which needs to call some C functions. Normally I would use JNI, but apparently for CLDC cellphones only KNI is available. I am willing to learn more about all this, but I just want to make sure that I'm moving in the right direction:

- Can someone confirm for me that using KNI allows my Java code to call C functions even if the CLDC cellphone doesn't support C? That sounds not possible, but KNI claims that it works on CLDC cellphones (which typically only support Java if I'm not mistaken).
- Normally if I use JNI, I would create .dll (Windows) or .so library files (Linux). So what is the format for a CLDC C library file?
- Where can I learn more about this?

Thank you.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-21-2008, 12:11 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 409
Nicholas Jordan is on a distinguished road
CLDC is by definition very small footprint api. I would think ME may be compiled against Java Native Interface ( JNI - which may be what KNI ) but I wanted to note that the one cellphone programming API I have been able ( time ) to dig in to wanted one to program esclusively in Java because the system engineers could trap at that layer.

The normal way of doing GUI code was not even supported, you just write the action and the system figures it out and calls into the next statement without doing the action performed / action event that drives code with a system generated thread.

This may not be much help, but that is what I saw.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a simple code (cldc or midp) to write a text file ouside of the application package sina CLDC and MIDP 2 03-13-2008 11:33 AM


All times are GMT +3. The time now is 12:48 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org