| | |
Invoke Java library from C/C++
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi everyone,
What you are asking is rather difficult but you could ude something called the Java Native Interface
Here are a few links to point you to the right direction
http://www.acm.org/crossroads/xrds4-2/jni.html
http://home.pacifier.com/~mmead/jni/cs510ajp/index.html
http://www.science.uva.nl/ict/ossdoc...ing/index.html
This is a tutorial on the Java Native Interface
http://www.javaworld.com/javaworld/j...jw-10-jni.html
I hope this helps you
Yours Sincerely
Richard West
What you are asking is rather difficult but you could ude something called the Java Native Interface
Here are a few links to point you to the right direction
http://www.acm.org/crossroads/xrds4-2/jni.html
http://home.pacifier.com/~mmead/jni/cs510ajp/index.html
http://www.science.uva.nl/ict/ossdoc...ing/index.html
This is a tutorial on the Java Native Interface
http://www.javaworld.com/javaworld/j...jw-10-jni.html
I hope this helps you
Yours Sincerely
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Thanks freesoft_2000,
You are an expert and your reply is very helpful. I think you must know how JVM implements JNI internally.
Can you recommend some materials dealing with JNI internal implementation?
regards,
George
•
•
•
•
Originally Posted by freesoft_2000
Hi everyone,
What you are asking is rather difficult but you could ude something called the Java Native Interface
Here are a few links to point you to the right direction
http://www.acm.org/crossroads/xrds4-2/jni.html
http://home.pacifier.com/~mmead/jni/cs510ajp/index.html
http://www.science.uva.nl/ict/ossdoc...ing/index.html
This is a tutorial on the Java Native Interface
http://www.javaworld.com/javaworld/j...jw-10-jni.html
I hope this helps you
Yours Sincerely
Richard West
Can you recommend some materials dealing with JNI internal implementation?regards,
George
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi everyone,
What happens is that the javah command converts the java source code to native code entry points. This command was provided for interfacing mainly for C/C++ but if you wish to use other languages then you will have to do your own translation of entry points and arguments thus creating your own version of javah for say pascal which is not recommended.
As for recommending about the internal implementation of jni in the jvm, i am not too sure about that and thus am unable to recommend articles about it
The link to the javaworld article especially on the second and third page talks more about the internal working between the jni and jvm.
Yours Sincerely
Richard West
What happens is that the javah command converts the java source code to native code entry points. This command was provided for interfacing mainly for C/C++ but if you wish to use other languages then you will have to do your own translation of entry points and arguments thus creating your own version of javah for say pascal which is not recommended.
As for recommending about the internal implementation of jni in the jvm, i am not too sure about that and thus am unable to recommend articles about it
The link to the javaworld article especially on the second and third page talks more about the internal working between the jni and jvm.
Yours Sincerely
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
•
•
Join Date: Nov 2004
Posts: 189
Reputation:
Solved Threads: 0
Thanks freesoft_2000,
Your reply is very helpful!
regards,
George
•
•
•
•
Originally Posted by George2
Thanks freesoft_2000,
You are an expert and your reply is very helpful. I think you must know how JVM implements JNI internally.Can you recommend some materials dealing with JNI internal implementation?
regards,
George
regards,
George
![]() |
Similar Threads
- JAVA Beginner (Java)
- get path to java compiler (Java)
- Java Visualizations with media (Game Development)
- how do you make java programs faster? (Java)
Other Threads in the Java Forum
- Previous Thread: how to do a basic system pause
- Next Thread: How do you center the text in a JTextField??
Views: 5539 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
3d @param affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth byte c# chat class classes click client code color compare component corrupted database detection draw eclipse error event exception file fractal game givemetehcodez graphics gui guitesting helpwithhomework html ide image input integer j2me java java.xls javaprojects jmf jni jpanel julia keytool keyword linux list loop map method methods mobile netbeans newbie number object oracle pong print problem producer program programming project projectideas read recursion reflection rim scanner screen server set size sms socket sort sql string swing terminal test threads time transfer tree web windows





