What's the easiest way to use C source code in a Java application?

前端 未结 7 2077
野的像风
野的像风 2021-01-12 00:21

I found this open-source library that I want to use in my Java application. The library is written in C and was developed under Unix/Linux, and my application will run on Wi

7条回答
  •  余生分开走
    2021-01-12 00:44

    Have you tried using:

    System.loadLibrary("mylibrary.dll");
    

    Not sure if this will work with a pure C library but it's probably worth a shot. :)

提交回复
热议问题