2

I am trying to control some LEDs wired to the parallel port on Windows XP. The easiest solution would be Inpout32.dll from Logix4u.net. I have found many source code samples in various languages (C++, Visual Basic, C#) but nothing using Java.

Do you know any tutorials about calling DLL functions from Java ? (what I have found so far on Google are not so advanced).

Environment: Java 1.6.0, Windows XP

4

2 回答 2

3

The generic way to access native code from Java is JNI.

However, there are frameworks like JNA and/or JInvoke hiding all complexity of JNI and providing interface similar to VBasic and C#.

BTW, there are JNI library and samples for your specific DLL here

于 2008-12-18T21:32:33.323 回答
2

There is also JNIWrapper

于 2008-12-18T21:46:36.507 回答