File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Java Comm Parallel How to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Comm Parallel How to" Watch "Java Comm Parallel How to" New topic

Java Comm Parallel How to

gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
Well, is there any way in the world, that I can read output from a printer connected on the parallel port on my box??
Well, the Win32 implementation of the parallel port, shipped with JCA, has a method to set the port type to a bi-directional ( or anything other than LPT_MODE_SPP, which is unidirectional )
but this method throws an UnsupportedCommOperationException, if the port type is NOT 1 ( 1 signifies LPT_MODE_SPP )

I am stuck.. I cant read from the parallel port, the pin status.. and I the damn printer wouldnt give me an outofpaper status... (
and the so helpful method always tells me there is paper... paper or now.. (

"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at :
I agree. Here's the link:
subject: Java Comm Parallel How to
It's not a secret anymore!