2

I have a device which I want to access from java. The only way to do this is using a dll library provided by the manufacturer. I have read about JNI, JNA etc. and maybe there is a tool outside which analyses the dll and generates the Java classes automatically.

Does anybody know a way of doing this?

tshepang
  • 12,111
  • 21
  • 91
  • 136
sebastian
  • 2,427
  • 4
  • 32
  • 37

2 Answers2

0

You need something like this - JNAerator can "compile" native headers in order to generate JNA mappings, with some limited C++ support.

TheWhiteRabbit
  • 15,480
  • 4
  • 33
  • 57
  • It doesn't seem to support parsing DLLs. You'd need a second tool that would decompile a DLL to a C/C++ header. – John Dvorak Jan 16 '13 at 09:07
0

Finally we used jawin to generate the Java classes for accessing the the .dll. The jawin typebrowser tool was the only one that could handle the C++ .dll we were trying to access.

Unfortunately the jawin project is no longer developed. The last version is dated to early 2005.

sebastian
  • 2,427
  • 4
  • 32
  • 37