tags:

views:

733

answers:

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

+3  A: 

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

Dmitry Khalatov
+1  A: 

There is also JNIWrapper

Javamann