Accessing .NET/dll libraries/components from Java?

后端 未结 6 995
-上瘾入骨i
-上瘾入骨i 2021-01-12 20:49

Are there inexpensive or free gateways from .NET to Java? I\'m looking at some data acquisition hardware which has drivers for C/C++ and .NET -- I really don\'t wan

6条回答
  •  梦谈多话
    2021-01-12 21:22

    You could also try to use JNA for accessing the native library. JNA provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code—no JNI or native code is required. If their API is fairly straight foward, this might be the path of least resistance.

    See their getting started guide where they call some native code (printf and GetSystemTime).

提交回复
热议问题