Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 14th, 2002, 11:03 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Interfacing With C From Java With JNI: Part 2/2

Interfacing With C From Java With JNI: Part 2\/2 If you have any questions or comments on this article then please post them here.

You can read the article here .

Reply With Quote
  #2  
Old February 15th, 2004, 08:10 AM
deProfi deProfi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 deProfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
JNI - it`s not slow !

Hi,

In the last 6 months I had the chance to integrate a Java with a C application using the JNI. The author of this article recommends not to use JNI if possible, because it would be slow.

I contradict at this point. There is actually no other possibility to connect a Java environment with applications written in C in one address space. Of course, the loading of the native library is expensive, but the call of native methods is as fast as any other Java method call.The native function is within the same address space, and the function pointer is directly accessible.

The JNI is a brilliant idea, especially for people who want to integrate system software with Java applications. Although I have to say, that this interface is even one of the most complicated ones that Java has to offer. One should have a good knowledge of C programming, multithreading and the Java concept of memory management.

Anyway, this article provides a good and easy example for JNI beginners. For professional applications of JNI I recommend the
books of Sheng Liang and and Rob Gordon.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Interfacing With C From Java With JNI: Part 2/2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT