dxuranus wrote:
> there are a lot of resources about jni. but these resources usualy
> first write the java and then write the c,but now i hava c so what can
> i do? thanks for any help
The straightforward way -- write new JNI code, callable from Java, which itself
calls the existing C code.
The expensive way -- use one of:
http://jniwrapper.com/
http://www.excelsior-usa.com/xfunction.html
The interesting way -- read:
http://java.sun.com/docs/books/jni/index.html
In particular chapter 9, the code for which can also be found from the above
page.
-- chris