Click to See Complete Forum and Search --> : Can some one give me a quick example of calling a dll with java?
Filter300
Aug 27th, 2002, 03:07 PM
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?:confused: :confused: :confused:
Dillinger4
Aug 27th, 2002, 11:15 PM
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.
intervenat
Aug 28th, 2002, 11:23 AM
here you go:
http://www.sogid.com/javalist/f2002/jni_static_native.html
CaptainPinko
Aug 28th, 2002, 11:55 AM
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...
Filter300
Aug 28th, 2002, 12:18 PM
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 ....
CaptainPinko
Aug 28th, 2002, 12:22 PM
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/tutorial/native1.1/index.html
it was right there... all i had to do was search for "native classes"
Filter300
Aug 28th, 2002, 12:32 PM
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...
CaptainPinko
Aug 28th, 2002, 12:37 PM
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)
Filter300
Aug 28th, 2002, 12:41 PM
i just translated it.. wow that works pretty slick... i'll have to read it now.. and see if i can figure it out...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.