Adele Cavalli wrote:
> 
> >From RPG I?m trying to call a java method. Probabibly
> something gooes wrong because I see some messages sent
> by VM but they disappear immediately and I get the
> error RNX0301 java.lang.InstantiationException . . .
> 
> Is there a way to read these messages before they
> disappear ?
> 

Adele, the only way I know to see them is to get them sent to a file.

1. In your home directory, create a file called
SystemDefaults.properties.  
   You can also put this file in /QIBM/UserData/Java400 - that way it 
   will affect every job that doesn't have this file in its home
directory.
2. In the file, add the following lines (putting whatever files you 
   want - they don't have to be in your home directory).  I don't 
   know if the lines have to start in column 1, but they do in my file.
      os400.stdout=file:/home/mydir/stdout.txt
      os400.stderr=file:/home/mydir/stderr.txt
3. You may also have to do 
     ===> ADDENVVAR ENVVAR(QIBM_USE_DESCRIPTOR_STDIO) VALUE(Y)
   before doing any RPG->Java calls.
4. Run your RPG program, and when it's finished, do
     ===> wrklnk '/home/mydir/std*' or whatever files you used
   and then display the files.

You'll probably have to sign off and back on before it takes affect.


This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2026 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.