Results 1 to 5 of 5

Thread: Use DLL in java

  1. #1
    myjavadevmail is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Unhappy Use DLL in java

    Hi,

    I have a dll without the sources and need to use it in a java application.
    I tried JNI and JNA and succeded in accessing methods and properties of custom made dlls, but not objects, which is the whole point of the project.

    Does any one has any idea ?

    Thanks

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by myjavadevmail View Post
    I tried JNI and JNA and succeded in accessing methods and properties of custom made dlls, but not objects, which is the whole point of the project.
    Objects? What objects?

  3. #3
    tecno40 is offline Member
    Join Date
    Nov 2010
    Posts
    13
    Rep Power
    0

    Default

    I don't think java can recognize a c++ object. Also i'm working on JNI also and can't figure out how to get it to work. Would you mind giving me your JNI code so i can see what you did?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

Tags for this Thread

Posting Permissions

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