Saturday, May 22, 2010

How i can convert C code in Java without using JNI?????

Even JNI doesn't do a good job of it, stop being lazy and recode it.

How i can convert C code in Java without using JNI?????
JNI can be quite effective at making use of legacy C DLLs in a Java application. But it's hard to write and hard to debug. Plus, it's not really doing any "converting" right? I agree with the other response -- consider porting the code to Java if you can take the performance hit. Otherwise, JNI is really the only solution to calling native code in Java.

chrysanthemum

No comments:

Post a Comment