Re: best way to integrate java and C code

From: Roedy Green (roedy_at_seewebsite.com)
Date: 10/15/03


Date: Wed, 15 Oct 2003 05:09:05 GMT

On Wed, 15 Oct 2003 10:26:21 +0800, "KC Wong"
<sterilize.the.spammers@killkillkill.com> wrote or quoted :

>1. JNI. You write an "interface" to the C program in Java, invoke javah on
>it which results in a C header file, then implement it to call your C
>program. Then call that "interface" in Java. You should check java.sun.com
>for documentation and tutorial, as there're much more (e.g. accessing Java
>objects, members and methods from C side, threading, invoking JVM) than what
>I've said.

for details see http://mindprod.com/jgloss/jni.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Relevant Pages

  • Re: Currency class?
    ... I have added some new documentation on how it works: ... Coaching, problem solving, economical contract programming. ...
    (comp.lang.java.programmer)
  • Re: CRC32 during straming gzip
    ... The documentation tells you what is SUPPOSED to do. ... Coaching, problem solving, economical contract programming. ...
    (comp.lang.java.programmer)
  • Re: Beginner question: 320LF2407 header file
    ... > of the 240 variables have the same name as the documentation for the ... change the header file, or I can send you mine. ... ..equ is basicly just alias. ... declaration beware, because you don't reserve space in RAM (the linker ...
    (comp.dsp)
  • Re: Batch file and MFC (Properly Terminating Application)
    ... Why not create a header file ... documentation, either at the definition site or the receiving site. ... EXCEPTION to this rule is handlers for thread messages sent to secondary UI ... afx_msg void functionname; ...
    (microsoft.public.vc.mfc)
  • Re: Bug in wmcodecconst.h
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... "Jeremy Noring" wrote in message ... in the WMFSDK 9.5 documentation, ... > Files," it states to include the header file "wmcodecifaces.h." ...
    (microsoft.public.windowsmedia.sdk)