× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




I don't know why, but it started working when I changed the classpath to:
ADDENVVAR ENVVAR(CLASSPATH) 
VALUE('.:/home/myfiles/:/home/myfiles/itext-1.3.jar')

Works now!

Larry


 --- On Wed 03/08, Dan Feather < DFeather@xxxxxxxxxxxxx > wrote:
From: Dan Feather [mailto: DFeather@xxxxxxxxxxxxx]
To: java400-l@xxxxxxxxxxxx
Date: Wed, 8 Mar 2006 10:22:35 -0600
Subject: RE: Using Compound Java Statements in RPG

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


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.