|
Did you also set QIBM_USE_DESCRIPTOR_STDIO? What release of OS/400
(i5/OS) are you on?
Gary
On 5/30/2007 11:51 AM, Kevin wrote:
I tried adding the following properties to the java properties file:
os400.stderr=file:/home/logs/stderr.txt
os400.stdout=file:/home/logs/stdout.txt
I then aded the logs folder to the home directory. I signed off, then
signed back on. I then ran the RPG program again. The stderr.txt and
stdout.txt files did not get created in /home/logs.
Gary L Peskin wrote:
http://archive.midrange.com/java400-l/200608/msg00039.html
Also try the same with os400.stderr.
Gary
On 5/30/2007 9:17 AM, Kevin wrote:
Unfortunately, like I mentioned earlier, the Java method is called from
RPG (not using "java") and looks something like:
C MONITOR
C CALLP JMyMethod(JMyClass
C : Jparm1
C : Jparm2
C )
C ON-ERROR
C ENDMON
Josh Diggs wrote:
What you are seeing is the standard output of the java program in the qshell
environment. If you want to capture this information, the easiest way is
probably to use the greater than symbol at the end of your java command to
redirect standard out to a file.
For example
java test > /logs/testLog.txt
Of course the logs directory would need to exist in the IFS.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of Kevin
Sent: Wednesday, May 30, 2007 6:15 AM
To: java400-l@xxxxxxxxxxxx
Subject: Where are Java messsages logged?
This may sound like a stupid question, but where do messages from my
Java program get logged (if anywhere)? Most of my Java experience is
from the PC platform (using Eclipse).
From an interactive job, I have a CL program the calls an an ILE RPG
program that in turn instantiates my Java class. The RPG program then
calls one of the Java class methods. When the Java class file runs, the
screen changes (QSHELL?) and messages flash very quickly (way too fast
for me to read them). Some of the messages are generated from
System.out.println(), some are from Exception.printStackTrace() and some
are from thrown Exceptions. As soon as control returns back to the RPG
program the green screen changes back to the normal environment and the
Java messages are gone.
If I use one of the debuggers to stop the RPG program before the green
screen reverts back to it's normal mode, the green screen is locked up
and I can't scroll back to look at prior messages.
I have even tried a screen capture program to try and record the
messages, but I can't seem to adjust the frame rate to be able to see
all of the messages.
As an Amazon Associate we earn from qualifying purchases.
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.