Results 1 to 2 of 2
  1. #1
    muthukumar25 is offline Member
    Join Date
    Jun 2011
    Rep Power

    Default Use .dll files in Java

    i have a dll file thats present some function. i called DLL file from java . i got the some errors such as

    Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'USBIsConnected': The specified procedure could not be found.

    but I hope with in that DLL the function present. here i have used java 1.6 version . kindly give the ideas

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Use .dll files in Java

    You can't directly call an arbitrary C/C++ function from Java; you have to use either JNA or JNI; JNI is the older technology and it requires you to write a little wrapper function for every function you want to call from Java; JNA doesn't need those wrappers but I have no experience with it (I don't even know if it runs on anything not-MS Windows).

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Replies: 11
    Last Post: 12-04-2011, 10:10 PM
  2. Replies: 2
    Last Post: 06-11-2011, 01:54 PM
  3. Replies: 1
    Last Post: 10-03-2010, 06:29 AM
  4. Replies: 8
    Last Post: 07-30-2010, 05:47 PM
  5. conversion of java .class files to .java files
    By kotturupraveen in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 12:58 PM

Posting Permissions

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