title: Using COM objects with WIA and com4j in Java
body: <p>I am a newbie in this and I wanted to ask if you could recommend me some articles, examples etc to start with communicating with scanner in java application<br />
  I am developing a module that should communicate with different scanners conected directly or in the local network... I would like WIA to start with and com4j..<br />
  thanks all for any advices :)</p>
  
  <p>Edit: I came to some informations in this <a href="http://com4j.java.net/tutorial.html" rel="nofollow noreferrer">Com4j tutorial</a>, that I need to generate some java type definitions from an ocx file.<br>
  If i had understand it, these generated classes will be my client to get the scanner using com4j. But what ocx/dll file shoud I use?<br>
  Anyone has idea?</p>
  
  <p><strong>Update 1:</strong> so I've managed to get the library to generate the wrapper classes, it was wiaaut.dll (Windows Image Acquisition Automation Library) and then via the ClassFactory I made an DeviceManager instance, but there are no devices in it...<br>
  How can I make the deviceManager to see the scanner on the local network?</p>
  
  <p><strong>Update 2:</strong> so i've discovered, that my HP LaserJet 2840 cant scan trough the network in win7 64 bit... now this question is answered, should I post the answer myself and set it to accepted, or close this Q other way? thanks</p>