Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Using a C DLL from Java

  • 03-09-2007 01:00PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 9,400 ✭✭✭


    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, Registered Users 2, Paid Member Posts: 9,400 ✭✭✭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