Java Problem “UnsatisfiedLinkError”

前端 未结 5 956
遥遥无期
遥遥无期 2020-12-11 13:38

I made a simple java program that sends bytes to the parallel port, which uses a .dll along with two other classes (pPort.java and ioPort.java) to accomplish it, and it work

5条回答
  •  醉话见心
    2020-12-11 13:54

    DLL needs to be in the path or current working directory in order to be loaded.

    I'm guessing when you've ran your program without IDE the latter was the case. When you run it from within NetBeans "working" directory is likely netbeans/bin folder, so DLL can't be found. Add its location to path and you should be good to go.

提交回复
热议问题