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