In my Java application I print some text and I want to get the status of the job afterwards. I used the example in http://www.exampledepot.com/egs/javax.print/WaitForDone.html , however I always get the status "printJobNoMoreEvents" either the print operation has succeeded or not. I used OKI dot printer, HP laser printer and EPSON TM-U295 , but the results is the same for all of them.
By the way, I observe that Windows gets the status of the job correctly, namely it gives the error status if the job is not printed properly. Therefore I guess it may be something related with PrintJobListener interface. What should I do?