Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default call c++ from java

    Hello, I have a problem calling a C++ function from java code. I know that for a callling that C++ are using JNI, but I don't know how to implement it. can someone help me??..;))

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: call c++ from java

    Quote Originally Posted by jalkalzrytron90 View Post
    Hello, I have a problem calling a C++ function from java code. I know that for a callling that C++ are using JNI, but I don't know how to implement it. can someone help me??..;))
    This is an extremely over-general question. Surely you don't want one of us to recreate a JNI tutorial since 1) good ones already exist, 2) you should first show the fruits of your efforts that you've already expending researching and studying this subject, and 3) after all we're only volunteers.

    Please feel free to come back if you have any specific and *answerable* questions.

  3. #3
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: call c++ from java

    Thank u sir about ur comments. Firstly, I'm very sorry about all my false. About JNI, I have alredy do a little research about JNI. What i know about JNI are we must add command #include <jni.h> and JNIEXPORT (File C). after I have done this, I try run the main java but still can't call the C++ function.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: call c++ from java

    Quote Originally Posted by jalkalzrytron90 View Post
    Thank u sir about ur comments. Firstly, I'm very sorry about all my false. About JNI, I have alredy do a little research about JNI. What i know about JNI are we must add command #include <jni.h> and JNIEXPORT (File C). after I have done this, I try run the main java but still can't call the C++ function.
    All this shows is that you haven't yet studied a tutorial on this subject. JNI is a deep subject that will require hours and days of intense research and study on your part to get up and running. The tutorials are easy to find, and I suggest that you get started.

    Search Google on -- Oracle Java JNI tutorial

    Start with the first hit from the search.
    Another good tutorial: http://www.ibm.com/developerworks/java/tutorials/j-jni/
    Last edited by Fubarable; 04-29-2012 at 09:00 PM.

  5. #5
    Join Date
    Apr 2012
    Posts
    3
    Rep Power
    0

    Default Re: call c++ from java

    OO..Thank u very much sir about ur comment..:))

Similar Threads

  1. how to call Java Bean Ireport frm Java application
    By Prashant.surwade in forum Advanced Java
    Replies: 8
    Last Post: 05-06-2012, 04:39 PM
  2. Is it Possible to call C++ from Java?
    By Ampzor in forum Advanced Java
    Replies: 6
    Last Post: 02-09-2012, 10:12 AM
  3. call by value and call by reference in java
    By sandeepsai39 in forum New To Java
    Replies: 7
    Last Post: 08-12-2010, 12:03 PM
  4. how to call dll from java ??
    By Omarero in forum New To Java
    Replies: 3
    Last Post: 11-13-2008, 06:14 AM
  5. how to call a dll from java
    By katie in forum Advanced Java
    Replies: 3
    Last Post: 12-10-2007, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •