How to deal with subfunctions?

Hi all,

I have a C-Program which I now want to include in Java with the JNI. I just want to transform the main-method of this program to a JNI-Method (which after that can be called in the Java-application). But it seems that is not possible. There are a lot of subfunctions in the same C-File I just don't want to change.

I've created a .dll (.so) out of that, but when the main-method (JNI-adapted) calls a subfunction (which is not JNI-adapted), it just stops.

Any hints?

[502 byte] By [madownsa] at [2007-11-27 10:54:49]
# 1

I think there is some logical problem with your program or might be some JVM specific. I tried the same and it worked.

SACHIN_SETH1203a at 2007-7-29 11:52:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...