Results 1 to 9 of 9

Thread: Can some one give me a quick example of calling a dll with java?

  1. #1

    Thread Starter
    Hyperactive Member Filter300's Avatar
    Join Date
    Aug 2001
    Posts
    413

    Can some one give me a quick example of calling a dll with java?

    i want something super simple for calling a dll... i was looking at sun's website but that just seemed to be going in circles... can someone help me out here?

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Do you mean by calling a DLL being able to invoke a method contained in a class that may reside on another system? If that is the case you might want to check out the post on dynamic object creation in this forum.

  3. #3
    New Member
    Join Date
    Aug 2002
    Location
    new york
    Posts
    3
    1

  4. #4
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    yeah, you'll need to use native classes which should be avoided like the plague unless you really really really have to. they reduce the platform independence of your project. most things tho you can usually accomplish through java's many classes so that you really shuld need to use a .dll, what .dll are you trying to use? maybe there is a java one you can use instead...
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  5. #5

    Thread Starter
    Hyperactive Member Filter300's Avatar
    Join Date
    Aug 2001
    Posts
    413
    intervenat that was all in some other language... i cant read it...

    i need the dll cuz... java cannot do what we need it to... need to open up documents in lotus notes from outside program... java can not do this... vb and suppsoedly c++ CAN... but java can not... so i need to call a dll that will do this ....

  6. #6
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    try using this: http://babelfish.altavista.com/ and set it to:
    French to English


    also i found this on the sun site:
    http://java.sun.com/docs/books/tutor...1.1/index.html

    it was right there... all i had to do was search for "native classes"
    Last edited by CaptainPinko; Aug 28th, 2002 at 12:26 PM.
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  7. #7

    Thread Starter
    Hyperactive Member Filter300's Avatar
    Join Date
    Aug 2001
    Posts
    413
    i found that thing on suns site... and all it did was confuse me... i guess i need to find some one that can explain that... i dont understand the example they are doing...

  8. #8
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    did you try translating that french page from intervenat w/ babelfish then?


    basically you need to write native code (ie. platform specific code eg. c\c++ pascal turing asm etc.) and then make the wrapper that lets java know how to interact w/ the native code (this is the .h header file i believe, similiar to MASM32 proto libraries)
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  9. #9

    Thread Starter
    Hyperactive Member Filter300's Avatar
    Join Date
    Aug 2001
    Posts
    413
    i just translated it.. wow that works pretty slick... i'll have to read it now.. and see if i can figure it out...

Posting Permissions

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



Click Here to Expand Forum to Full Width