On Wed, 07 Apr 1999, Chien-Lung Wu wrote:
>Hi, guys:
>
>Can somebody point out that how can I insert a piece of C code in my java
>program?

You need to declare a native function in your java-code. Then you run javah
-jni MyPackage.MyClass. Then you have a header file for your c/c++ function.
you can then implement your function.

Read all about it in the java-tutorial at java.sun.com

Happy coding
Dènis Riedijk


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to