简体   繁体   中英

calling .DLL file through java

I have a DLL file mostly written in vb.net It will take 2 parameters. I am suppose to make use of this DLL in my java code and pass required 2 parameters. How should I go about it?

Use JNI , Load your dll and call native functions

See

In Java there's basically two good options for this: (in order of recommendation)

  1. If your DLL has C function headers (rather than C++ decorations), you should use JNA . It has a simple, declarative syntax and only requires writing some Java.
  2. Write JNI bindings for your DLL (there'll be some Java and some C++ code involved).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM