How to use c/c++ code in JAVA
Answer Posted / jaya prakash
Java Native Interface
is only correct ans.
it provide JNI.H header file.
only use method in java.
then
use the run command
javah -jni classname,
it creates classname.h header cpp file
we produce classname.cpp file
and
use run command
cl /LD classname.cpp
it produces .dll file
then
we compile and run java file
without using these steps u can't compile or run it.it
produces error because the method used in java is not
defined,,,
Is This Answer Correct ? | 25 Yes | 3 No |
Post New Answer View All Answers
What kind of structure is a house?
How does struct work in c?
Explain what is dynamic data structure?
What are the features of the c language?
What are the advantages of using new operator as compared to the function malloc ()?
What is difference between arrays and pointers?
What is use of #include in c?
I need a sort of an approximate strcmp routine?
What are the difference between a free-standing and a hosted environment?
What is the role of && operator in a program code?
How many data structures are there in c?
What is structure padding and packing in c?
How to declare a variable?
Explain the process of converting a Tree into a Binary Tree.
Does c have class?