• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is a scanner driver is possible in java  RSS feed

 
S Rubia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ,
Today my question is
Is it possible to make a scanner driver for WinXP completely in java???
If it is then how means from where to start and by which api to follow?
Another question is that how a driver works means
1--How it communicates with OS
2--How it communicates with Scanner.
cause i have a very little knowledge on this topic so can anyone tell me any comprehensive link on this topic..
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short answer: no.
Longer answer: you may be able to communicate with the scanner if it's got a serial interface, or network interface, but you wouldn't be able to create the part of the driver that "plugs in" to Windows using only Java.
Even longer answer: you certainly could write such a driver in Java with some native-code components -- i.e., some Java, some C. But I'm not sure you'd want to -- that's not the kind of thing Java is designed for.
 
S Rubia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Ernest,
I really appreciate ur multidimensional Knowlegde,also give waitage to ur suggestion BUT the problem is that i have to make a scaner driver for winxp in java (even if it is possible by native code)my real problem is that i had no knowledge abt Plugins or drivers so would u or anyone else kindly tell me any useful informational link abt this or any c++ tutorial related to this topic
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may take a look at the Java(tm) Communications API Users Guide. The package is javax.comm and is therefore an extension to Java 2. Not much has been done with it since it was first introduced, so about all you can do is open a serial or parallel port and read/write to them. As far as I know you can't use USB or SCSI so it may be difficult to use for a scanner. You may have to write your own JNI interface as Ernest indicated.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!