I have downloaded Jasper Reports Examples and i have compiled by
setting the classpath to appropriate libraries.After that i have generated
a report in JasperViewer it is also generating but when i clicked on
print button in Jasper Viewer it is giving the following Exception

Java.awt.print.PrinterException: Printer is not accepting job.
at sun.print.RasterPrinterJob.print(RasterPrinterJob. java:1230)
at sun.print.RasterPrinterJob.print(RasterPrinterJob. java:1196)