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



WRKENVVAR displays all envvar.

One way to call Java from CL is to have CL call a qshell script and code your java related logic in the script. For example:
CHGVAR     VAR(&QSH)      VALUE('/home/myscript.sh' *BCAT &PARMS)
QSH CMD(&QSH)
myscript.sh' contains the java command etc.





David Gibbs wrote:

cornelius, chad wrote:
Does anyone know how to call a Java program from a CL?  If so, do you have
an example CL?  Also, if the program being called resides in a .jar, how do
you add the .jar to the classpath on the ISeries?  We are running V5R2.

Um ... check the archives.  This kind of thing has been discussed heavily.

In a nutshell: RUNJVA command or via qshell.

You put a jar on the classpath the same way you do it on any other
system ... using the CLASSPATH environment variable or specify it on the
command line.

david

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.