how to use .dll files in java code?

后端 未结 3 1295
旧时难觅i
旧时难觅i 2021-01-24 10:29

I have a .dll file, which i have to use in java. This .dll file has a parameterised method, which should return type as string. When i am passing parameter to it, i get the mes

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-24 11:01

    public native String eagleye_fmu(n); The 'n' here is the problem as it would be a problem with any other java function declaration.

    This should be something like public native String eagleye_fmu(String); then you call the native function like any other function String result = eagleye_fmu(n);

    This is all assuming you have the dll implemented properly

提交回复
热议问题