Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Using a C DLL from Java

Options
  • 03-09-2007 1:00pm
    #1
    Registered Users Posts: 9,312 ✭✭✭


    Hope someone can help me with this, I'm not a Java coder at all.

    I have a C DLL (which I didn't write) that I need to call from a Java app. I tried to call it using a JNI stub but the namespaces don't match so it looks like I'll have to write another DLL of my own to sit between Java and the 3rd party dll.

    Is there any simpler way of doing this, it seems a little kludgy?

    Mark


Comments

  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    can you recompile the DLL at all?
    you might get help from here
    check out this too


  • Registered Users Posts: 9,312 ✭✭✭markpb


    Unfortately not, it was provided by another company for talking to their hardware. I'll have a look at those links... cheers.


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    if you can't recompile the DLL, then you might have to create a seperate dispatcher routine (as you know, i'm sure) - let us know what you do in the end.i'm interested to know.


Advertisement