|
I believe you're CLASSPATH environment variable is case sensitive... Try: CHGENVVAR ENVVAR(CLASSPATH) VALUE('.:/home/myfiles/itext-1.3.jar') Dan Feather -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Larry Sent: Wednesday, March 08, 2006 10:09 AM To: java400-l@xxxxxxxxxxxx Subject: RE: Using Compound Java Statements in RPG I got around this by just ignoring it. I used Java to figure out what the actual value was that was returned from the static method in question and inserted it directly. I can figure this out later. One more brainteaser. The CLASSPATH has me messed up. My program works fine as long as I just refer to base java classes. When I try to hit my classes, it blows up saying that it can not find the class definition. My jarfile is in /home/myfiles. The jarfile has full public access. The jarfile is not corrupt (I opened it using winzip and everything is fine). The classpath is set with: CHGENVVAR ENVVAR(classpath) VALUE('.:/home/myfiles/itext-1.3.jar') at the *JOB level. Running the program gets me: Cause . . . . . : RPG procedure PDFMAKER in program KAUTZ/PDFMAKER received Java exception "java.lang.NoClassDefFoundError: com/lowagie/text/Rectangle" when calling method "<init>" with signature "(FF)V" in class "com.lowagie.text.Rectangle". But the class does have a constructor with two floats. I know it works because I wrote a JAVA program against it to duplicate the RPG code and it works fine. Procedure def in RPG: D makeRec PR O EXTPROC(*JAVA: D 'com.lowagie.text.Rectangle': D *CONSTRUCTOR) D hight 4F VALUE D width 4F VALUE Confused Larry. --- On Wed 03/08, Larry < larryhytail@xxxxxxxxx > wrote: From: Larry [mailto: larryhytail@xxxxxxxxx] To: java400-l@xxxxxxxxxxxx Date: Wed, 8 Mar 2006 08:20:15 -0500 (EST) Subject: Using Compound Java Statements in RPG <br>Let's say I have a java class com.zzz.test.Pages.<br>Pages contains types of pages, which are also objects.<br>Each type of page has methods. So in java I can simply<br>choose A4 type paper and rotate it with the code:<br><br>com.zzz.text.Pages.A4.rotate();<br><br>This is all static stuff built into the class itself.<br><br>I've been fooling around with how to prototype this method and not getting anywhere. This seems to be wrong, but can't think of how to do it correctly:<br><br> * Rotate Method<br> D rotate PR O ExtProc(*JAVA:<br> D 'com.zzz.text.Pages.A4':<br> D 'rotate')<br> D STATIC<br> D Class(*JAVA:<br> D 'com.zzz.text.Rectangle')<br><br>Larry<br><br><br><br>__________________ _____________________________<br>No banners. No pop-ups. N! o kidding.<br>Make My Way your home on the Web - http://www.myway.com<br><br><br>-- <br>This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list<br>To post a message email: JAVA400-L@xxxxxxxxxxxx<br>To subscribe, unsubscribe, or change list options,<br>visit: http://lists.midrange.com/mailman/listinfo/java400-l<br>or email: JAVA400-L-request@xxxxxxxxxxxx<br>Before posting, please take a moment to review the archives<br>at http://archive.midrange.com/java400-l.<br><br> _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com
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.