PDA

View Full Version : Java Programming DLL


wmania2
17-02-2009, 07:48 PM
Hi,
I am using a dll I found from the internet to code. When everything is in one folder, I can compile and run just fine. However, when I move everything except the main program to a subdirectory, I get a unsatisfied link error. I have added the import statements to the main program and named the subdirectory files as the correct package. The error message is not one of no class definition found but that there is an error calling the method in the subdirectory package file.

zeroxmxi
18-02-2009, 08:29 AM
Sounds interesting, what might you be coding? What's this DLL you're trying to use. Are you using Java programming language? I rarely use Java with .dll binaries. I wonder how it works. :D

Regards.

zeroxmxi
18-02-2009, 08:32 AM
Maybe it's you ought to use this?

System.load(dllFilename);

Judging from the documentation though. I'm not really sure.

Regards.

silver09
18-02-2009, 09:49 AM
It has something to do with link binding to the external library.....

During compile time....it tells the system to look for a dlll in a specific directory.

Try to google how to do something like dynamic linking to dll.....