× 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.



Hi,

I've been using the Jakarta Poi java classes in RPG and here 
is what I do (cl) before the RPG creates a MS Excel worksheet 
in a batch job:

CHGCURDIR  DIR('/jar/poi')                          
ADDENVVAR  ENVVAR(CLASSPATH) +                      
VALUE('.:/jar/poi:/jar/poi/jakartapoi151.jar') +    
             REPLACE(*YES)                          
CALL RPGPGM
RMVENVVAR  ENVVAR(CLASSPATH)  


Regards,
Magne
                                       



Date: Wed, 9 Mar 2005 13:12:04 -0500
From: "Jon Paris" <Jon.Paris@xxxxxxxxxxxxxx> Add To Address 
Book 
Subject: RE: CLASSPATH 
To: <java400-l@xxxxxxxxxxxx> 


Thanks for the suggestions guys.  I guess I should have known 
that despite 
the emphasis on Java on the box that it wouldn't be simple! 

The script and Java solutions suggested I'm sure work just 
fine, but I'm 
mainly interested in setting the CLASSPATH so that RPG 
programs can call 
Java methods - therefore I need to find a solution that will 
preferably work 
from RPG (or worst case CL).  I'm going to be teaching a 
bunch of RPG 
programmers who know little or no Java how to interface to 
the Jakata POI 
classes and similar stuff.  Having to first teach them Java 
or worse still 
(with apologies to David) qshell scripting (which I'm sure 
makes sense to 
somebody - but it ain't me!) first is not going to be 
productive. 

I'll just have to tell them about it since a utility using 
IFS APIs would 
also require explanation! 

Jon Paris 
Partner400 
www.Partner400.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.