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



Larry Gorlin wrote:
> 
> Thanks Barbara. Since we're on V5R1 it looks like that's our problem.
> 
> Now if I can figure out how to manually start a JVM maybe I can get past
> this. The IBM documentation (ILE RPG Programmer's Guide) tells how to
> start a JVM with the default classpath, but I've not been able to get
> past that to start one with my own classpath.
> 
> Does anyone know how to do this or know where it's documented?
> 

The V5R3 version of the "RPG and Java" documentation is better, and it
all applies to V5R1 except the information about the
QIBM_RPG_JAVA_EXCP_TRACE environment variable.

I would still let RPG start the JVM, and just make sure the CLASSPATH
environment variable is set to the classpath you want.  If you get the
CLASSPATH environment variable set up at the start of the job, you don't
need to worry about the setup in your individual programs.

But make sure the CLASSPATH includes the classes for all the programs
that might need to call Java in a job.  It can be dangerous working in
V5R1 where you can usually get away with starting a new JVM for each
program.  Design for the future (V5R2+) where you can't do this.


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.