|
Hi Ashish, I had a similar problem when I was generating PDF files in Tomcat using Sitraka's ServerReport package. Here is replay from David Morris and it fixed my problem: You have a few options. You can remove all references to awt from the package, which doesn't sound like an option. You could produce the reports on a server connected to your iSeries system and pass them back. You can set up and run NAWT. With NAWT, awt calls are intercepted and processed by a job running on your system running VNC. Finally, and best if it works (I haven't tested this on the iSeries) is to install the 1.4 JDK and set the system property java.awt.headless to true. David Morris -----Original Message----- From: Franco Biaggi [mailto:fbiaggi@xxxxxxxxxx] Sent: Monday, April 14, 2003 10:13 AM To: Java Programming on and around the iSeries / AS400 Subject: Re: Error in calling simplejava program with Swing in QShell Hai, maybe an IBM guru can give you a better answer, but the AS/400 do not support a GUI interface... You could try RAWT (Remote AWT). Ciao. On Mon, 14 Apr 2003 07:08:20 -0700 (PDT), Ashish Kulkarni wrote: >Hi, >I have a simple java program which extends JFrame and >I get the following error when i try to run it. >It just popups a window to say hello window?? >I have jdk1.3.1 on V5R1 AS400 >Ashish >java MyWindow > >Exception occurred in main() of javax.swing.JFrame > >java.lang.Error: Could not find class: >com.ibm.rawt2.ahost.java.awt.AHGraphic >sEnvironment > > >java/lang/Throwable.<init>(Ljava/lang/String;)V+4 >(Throwable.java:90) > >java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/Gra >phicsEnvironment;+63 (GraphicsEnvironment.java:61) > > >java/awt/Window.<init>(Ljava/awt/GraphicsConfiguration;)V+69 >(Window.ja >va:186) > > java/awt/Frame.<init>()V+7 (Frame.java:262) > > javax/swing/JFrame.<init>()V+1 (JFrame.java:141) > > MyWindow.<init>()V+0 (MyWindow.java:33) > > MyWindow.main([Ljava/lang/String;)V+0 >(MyWindow.java:161) >$ > >__________________________________________________ >Do you Yahoo!? >Yahoo! Tax Center - File online, calculators, forms, and more >http://tax.yahoo.com >_______________________________________________ >This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) >mailing list >To post a message email: JAVA400-L@xxxxxxxxxxxx >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo.cgi/java400-l >or email: JAVA400-L-request@xxxxxxxxxxxx >Before posting, please take a moment to review the archives >at http://archive.midrange.com/java400-l. ----------------------- Franco Biaggi CH-6807 Taverne _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo.cgi/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.