Jump to content
Changes to the Jaspersoft community edition download ×

Print Problem While running jasper in linux

Recommended Posts

By: Krishna - krishnamurthir

Print Problem While running jasper in linux

2006-08-19 00:07

dear friends,


Can any one help me out for doing the print operation in linux,Is there any difference in linux & windows


I have created a small appl.(swing) and i have created .jrxml for report work.In windows everythig is fine.

but while run the same appli. in linux it will throw an exception when i press print button in the jasper viewer.


exception is:


Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: getDefaultPrinterName

at sun.print.Win32PrintServiceLookup.getDefaultPrinterName(Native Method)

at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Win32PrintServiceLookup.java:219)

at sun.print.Win32PrintServiceLookup.getPrintServices(Win32PrintServiceLookup.java:81)

at sun.print.Win32PrintServiceLookup.getPrintServices(Win32PrintServiceLookup.java:178)

at javax.print.PrintServiceLookup.getServices(Unknown Source)

at javax.print.PrintServiceLookup.lookupPrintServices(Unknown Source)

at java.awt.print.PrinterJob.lookupPrintServices(Unknown Source)

at sun.print.RasterPrinterJob$4.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.print.RasterPrinterJob.printDialog(Unknown Source)

at sun.print.PSPrinterJob.printDialog(Unknown Source)

at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:184)

at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:88)

at net.sf.jasperreports.engine.JasperPrintManager.printPages(JasperPrintManager.java:348)

at net.sf.jasperreports.engine.JasperPrintManager.printReport(JasperPrintManager.java:239)

at net.sf.jasperreports.view.JRViewer$20.run(JRViewer.java:1040)

at java.lang.Thread.run(Unknown Source)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...