I’ve got a dll written in Pascal. I’ve determined that I need to run CoInitialize in the Java code, but I just can’t figure out how. I found another Stack Overflow thread which should have helped here: https://stackoverflow.com/questions/15763993 but I couldn’t understand how it actually worked. My current code that I have now is here: Answer Example of calling CoInitializeEx