Jump to content
Changes to the Jaspersoft community edition download ×

Problem run jasper on iseries (as/400)

2005 IR Help

Recommended Posts

By: sergey_v - sergey_v

Problem run jasper on iseries (as/400)

2004-12-10 09:42

Please, can anybody help.

I try to run jasper 0.6.1 on jre 1.4.2 on OS/400 V5R2.

Headless set properly (thanks to this forum!):



I get the following error:


java.awt.AWTError: PrinterJob not found: com.ibm.rawt2.ahost.java.awt.print.AHPrinterJob

at java/lang/Throwable.<init>(Throwable.java:195)

at java/lang/Error.<init>(Error.java:49)

at java/awt/print/PrinterJob$1.run(PrinterJob.java:62)

at java/awt/print/PrinterJob.getPrinterJob(PrinterJob.java:54)

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

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

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

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

at RPrint.main(RPrint.java:9)





By: Nikola Lazarevic - nikolal

RE: Problem run jasper on iseries (as/400)

2004-12-11 11:23

Are you printing on OS/400 or in a applet of the browser machine?

It looks like print service is not available.





By: sergey_v - sergey_v

whole application on iseries server(-)

2004-12-13 01:31






By: Giulio Toffoli - gt78

RE: Problem run jasper on iseries (as/400)

2004-12-13 07:10


AS 400 has not a frame buffer (there is not a graphics interface), and AWT is not available.


if you use java 1.4 or greater you can enable the java system property java.headless.


I don't know if exists a virtual frame buffer for As 400 to "simulate" an X enviroment (this is the solution for jdk < 1.4).









By: sergey_v - sergey_v

RE: Problem run jasper on iseries (as/400)

2004-12-13 11:52

AS/400 does not have graphics hardware - yes, but, according to ibm docs, do have some kind of AWT. Please, see IBM docs page "AWT headless mode compatibility" - link below. Unfortunately, ibm information is very concise plus i am not very well with java (well with OS/400, though). As I mentioned in original post, i set headless=true (enabled?)



Thanks a lot to everyone replying.

I believe making JasperReports smartly running on n+1 platform - iseries will be usefull to community.


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...