CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    calling 'c' function in java



    IAM NOT ABLE TO CALL 'C' FUNCTION IN JAVA.IN 'CORE JAVA1.1:FUNDAMENTALS

    (sunsoft press java series)VOL1',THERE IS TOPIC COVERING CALLING C IN JAVA,

    I HAVE GONE THROUGH THE TOPIC BUT IAM NOT ABLE TO FOLLOW STEPS GIVEN IN

    CORE JAVA.I WILL BE VERY THANKFUL YOU,IF YOU SEND ME AN EXAMPLE WITH DETAILED

    EXPLANATION OF THE CODE YOU WILL BE SENDING AND PLEASE MENTION OTHER BOOKS.

    PRESENTLY IAM WORKING IN RAFFLES SOFTWARE,IAM A BEGINNER(JAVA).IT WILL BE BETTER

    IF YOU SEND ME THE SOLUTION IMMEDIATELY.

  2. #2
    Join Date
    Apr 1999
    Posts
    14

    Re:Calling 'C' functions in Java



    Hi Gururaj,


    To call C functions in Java u have to use JNI( Java Native Interface )

    To get better idea of JNI calls follow this,


    java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html


    If u don't understand this then let me know ASAP

    I'll send u some sample code that I have written.


    I hope this will solve ur problem.


    Amol.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured