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
Which is best linux os?
How does struct work in c?
What are data structures in c and how to use them?
write a program to concatenation the string using switch case?
What are loops in c?
How can you increase the size of a dynamically allocated array?
What does sizeof int return?
What is the need of structure in c?
How important is structure in life?
What is the use of extern in c?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
How to Throw some light on the splay trees?
Why void main is used in c?
What are void pointers in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }