java - How to access classes and methods of vb.net native dll file from jna or other library -
what have
a) have used jna library.
b) dll vb.net native dll file.
c) can check link more dll link
my source code following
interface
package com.dll.lib; import com.sun.jna.library; import com.sun.jna.native; public interface browsecontrol extends library { browsecontrol instance = (browsecontrol)native.loadlibrary("vertex fxboapi10.5.9", browsecontrol.class); }
class
package com.dll.main; import com.dll.lib.browsecontrol; public class maintest { public static void main(string[] args) { browsecontrol control=browsecontrol.instance; system.out.println("brwoser: "+control.getclass()); } } }
this code working.
what want
a) how access classes , method dll in java programming language?
b) how reference {vertexfx backoffice api}
dll, define object of type cvertexfxboapi
class, after call methods object.setlogininfo
, object.login
thanks
yo can use native code shared library via jni. jni provides bridge between java , code. however, have make sure keep naming convention native routines.
in case (where have dll native code want call) can go via jni wrapper code code. way, can leave dll is.
take here sample code where:
http://jnicookbook.owsiak.org/recipe-no-018/
this not looking (as code macos/linux) schema similar.
your jni wrapper (called java) - native code - load library have (one inside dll produced else). then, need call function dll.
Comments
Post a Comment