2005 IR Help Posted August 27, 2006 Share Posted August 27, 2006 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!): -Djava.awt.headless=true 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). Giulio 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?) http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzaha/nawt14headlesscompat.htm Thanks a lot to everyone replying. I believe making JasperReports smartly running on n+1 platform - iseries will be usefull to community. Sergey. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now