The runnable JAR calls the method of the third-party DLL file

There are many methods on the Internet, all of which are more complicated. This method is the easiest to implement, and it is more troublesome to transplant.

1. Put the third-party DLL file in the C:\Windows\System32 directory

 

2. Add the code in the Java program:

               System.load("C:/Windows/System32/ DLL filename ");

     For example: System.load("C:/Windows/System32/msc64.dll");//To enter the absolute path

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326260678&siteId=291194637
Recommended