From what I researched, a Windows GUI application will typically throw away stdout and stderr. If you have not tried it, I would give the following a suggestion a try and see if it works. It should be simple to try it out.
"Even if you are dealing with an exe, you can try finding the exe location and then launch it from a DOS prompt as follows:
myprog.exe > c:\users\blah\output.txt 2>&1"
If that does not work, then you may need to use a tool like Systinternals Process Explorer to see what MQExplorer is really doing with stdout and stderr.
------------------------------
Tim Zielke
CICS/MQ Systems Programmer
Alight Solutions
Deerfield IL
------------------------------
Original Message:
Sent: Tue March 31, 2026 10:19 AM
From: John Hawkins
Subject: MQExplorer runwithtrace.cmd and javax.net.debug=ssl,handshake
Indeed, you can, but MQExplorer grabs the stdio/err and, from what I can, see redirects them into its own jre trace files. These don't seem to contain the output from the javax.net.debug that I'm looking for :-( I'm looking for things like the jks file being opened, available certs, and the connection handshake - but, nothing in there :-(
------------------------------
John Hawkins
Integration Consultant
------------------------------
Original Message:
Sent: Tue March 31, 2026 08:54 AM
From: Tim Zielke
Subject: MQExplorer runwithtrace.cmd and javax.net.debug=ssl,handshake
Even if you are dealing with an exe, you can try finding the exe location and then launch it from a DOS prompt as follows:
myprog.exe > c:\users\blah\output.txt 2>&1
I tried a quick test doing that, and output.txt collected stdout from the exe.
------------------------------
Tim Zielke
CICS/MQ Systems Programmer
Alight Solutions
Deerfield IL
Original Message:
Sent: Mon March 30, 2026 12:55 PM
From: John Hawkins
Subject: MQExplorer runwithtrace.cmd and javax.net.debug=ssl,handshake
Hi Tim,
This doesn't work with Explorer - which is run using an .exe from this file.
It spits out a e.g. mqjavaclient_292.cl0.trc file. But, nothing (well, not what I expect to see) in that. nor in the other files it's outputting e.g. AMQ20260330173628303.0.TRC
Any more ideas folks - pretty sure this shouldn't be too hard to get working.
I've set -D*** in the mqexplorer.ini, I've set it in the runwithtrace.cmd; I've set echo on in the .cmd file but nothing, no ssl trace in any of the various files.
thanks !
John.
------------------------------
John Hawkins
Integration Consultant
Original Message:
Sent: Fri March 27, 2026 11:58 AM
From: Tim Zielke
Subject: MQExplorer runwithtrace.cmd and javax.net.debug=ssl,handshake
The output for -Djavax.net.debug should be going to either stdout or stderr. I do not work much with MQExplorer, but do you have a way to configure the java command line to make sure you are capturing both stdout/stderr to some output file?
Ex.
java YOUR_APP > output.log 2>&1
------------------------------
Tim Zielke
CICS/MQ Systems Programmer
Alight Solutions
Deerfield IL