If you absolutely have to use a DLL, you will have to create a Java Native Interface wrapper for the DLL and the corresponding Java classes and install it as a module. I would rate it as very difficult.
3 Likes