Results 1 to 4 of 4
  1. #1
    katie is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default how to call a dll from java

    I want to call a generic dll from JAVA. The dll is provided by thirdparty. I can load it using "System.load("nameofthedll.dll");"
    but I'm now confused how can I call the methods??. Since it is not made by me using JNI so there is not method with "native" keyword.


    thanks
    Last edited by katie; 08-07-2007 at 04:11 PM.

  2. #2
    christina is offline Member
    Join Date
    Jul 2007
    Posts
    39
    Rep Power
    0

    Default

    You should still use JNI to call the third party DLL through a
    DLL made by you.
    Java call the DLL made by you, then this DLL call the third party DLL, as a bridge.

  3. #3
    Zahari is offline Member
    Join Date
    Dec 2007
    Posts
    5
    Rep Power
    0

    Default

    (2)******JAVA CALL DLL******

    System.load("C:\\Windows\\System32\\yourdllname.dl l");
    System.out.println("CLIENT_ENCRYPT LOADED");

  4. #4
    Abdul Ajis is offline Member
    Join Date
    Dec 2007
    Posts
    12
    Rep Power
    0

Similar Threads

  1. How to call C/C++ Program from Java
    By sanjeevtarar in forum Advanced Java
    Replies: 1
    Last Post: 04-17-2008, 09:55 AM
  2. Replies: 0
    Last Post: 02-17-2008, 09:57 AM
  3. Replies: 0
    Last Post: 01-28-2008, 08:02 AM
  4. Replies: 0
    Last Post: 01-02-2008, 02:52 PM
  5. I need to call and run another program
    By coco in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 06:47 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
  •