David, I tried to solve the problem by using eteks pja toolkit which allows one to use AWT without having to show AWT components. Problem is still "no jpeg in java.library.path" It seems java400 is missing a JPEGImageDecoder class? although this class (com.sun.image.codec.jpg.JPEGImageDecoder) exists in the rt.jar on the as400. I'm trying to solve this problem without having to install NAWT. Any help is appreciated, Geert Van Landeghem -----Original Message----- From: David Morris [mailto:David.Morris@plumcreek.com] Sent: mardi 30 juillet 2002 14:22 To: email@example.com Subject: Re: Anyone using FOP on AS/400? Geert, The problem is that the iSeries does not normally support the AWT classes. What version of FOP are you using? You can use NAWT, which requires VNC. Here is a link to get you started if you decide to go this route. http://www.midrangeserver.com/guruo/mgo031302-story01.html If you do not have graphics embedded in your PDF files, you should be able to use FOP. I know that worked with 20.3 -- I am not sure about 20.4. I will see if I can update our site to 20.4 today and let you know if it breaks anything. If you do not have graphics, the biggest limitation is on page size. The time to generate a PDF grows exponentially and 40 pages is about the limit for a midsize iSeries system. I check the size of the input file and force the user to restrict selections for long reports. David Morris >>> firstname.lastname@example.org 07/30/02 02:51 AM >>> Hello all, I have a java/FOP application working on a Windows2000 Server that converts xml files into pdf files using FOP. I want to transfer this application to our AS/400 system. When copying all the appropiate directories to the AS/400 and executing a test program following exception occurs: using SAX parser org.apache.xerces.parsers.SAXParser building formatting object tree setting up fonts [1>>>]java.lang.UnsatisfiedLinkError: no jpeg in java.library.path java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:90) java/lang/ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+309 (ClassLoader.java:1312) java/lang/Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+51 (Runtime.java:749) java/lang/System.loadLibrary(Ljava/lang/String;)V+6 (System.java:820) sun/security/action/LoadLibraryAction.run()Ljava/lang/Object;+4 (LoadLibraryAction.java:53) sun/awt/image/JPEGImageDecoder.<clinit>()V+33 (JPEGImageDecoder.java:39) sun/awt/image/InputStreamImageSource.getDecoder(Ljava/io/InputStream;)Lsun/awt/image/ImageDecoder;+135 (InputStreamImageSou rce.java:224) sun/awt/image/URLImageSource.getDecoder()Lsun/awt/image/ImageDecoder;+159 (URLImageSource.java:142) sun/awt/image/InputStreamImageSource.doFetch()V+34 (InputStreamImageSource.java:251) sun/awt/image/ImageFetcher.fetchloop()V+29 (ImageFetcher.java:217) sun/awt/image/ImageFetcher.run()V+4 (ImageFetcher.java:185) Is this problem caused bij java400 (no AWT available) and if so is there a solution to this problem? Any help is appreciated, Geert Van Landeghem _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-Lemail@example.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact