You are here: PSPad forum > English discussion forum > Re: Java Program Output Not Captured

Re: Java Program Output Not Captured

#1 Java Program Output Not Captured

Posted by: Ravelli | Date: 2022-12-21 13:37 | IP: IP Logged

Hello all,

I'm just reviving my Java skills.

When I hit the compile button, a simple "Hello World" code gets successfully compiled, and a console opens to print the "Hello, world". But in the compiler settings I have "Capture Program Output Window" enabled. Shouldn't the output appear in PSPad's log window? Screenshot

For a feedback many thanks in advance
Ravelli

Options: Reply | Quote | Up ^


#2 Re: Java Program Output Not Captured

Posted by: pspad | Date: 2022-12-21 14:02 | IP: IP Logged

Hello

I don't know Java, but if Java use it's own console, PSpad isn't able to capture it.
You can redirect output to file and fill in Log file in the compiler settings

Options: Reply | Quote | Up ^


#3 Re: Java Program Output Not Captured

Posted by: pspad | Date: 2022-12-21 14:04 | IP: IP Logged

Sorry, I overlooked your screenshot.
Delete LOG file entry
If it doesn't help, uncheck Compile on background option

Options: Reply | Quote | Up ^


#4 Re: Java Program Output Not Captured

Posted by: Ravelli | Date: 2022-12-21 20:29 | IP: IP Logged

Deleting the "Log File" entry doesn't change anything.
Disabling "Capture Program Output Window" doesn't change anything.
Disabling "Compile on background" works as intended, it hides the compiler window, which usually pops up for a moment.

I'm pretty sure the "Capture Program Output Window" did work in the past. It's such a fundamental feature.

In addition, the entire thing somehow behaves unpredictable: When I make mistakes into the code, the compiler finds them, but PSPad doesn't display them. It simply runs the previously compiled file. And yes, I have this file marked as main file of the project.

Well, I will give up for now.
Friendly greetings
Ravelli

p.s.: apparently the forums "Send replies to this thread to me via email" still don't work.

Options: Reply | Quote | Up ^


#5 Re: Java Program Output Not Captured

Posted by: pspad | Date: 2022-12-23 09:52 | IP: IP Logged

Ravelli:
I'm pretty sure the "Capture Program Output Window" did work in the past. It's such a fundamental feature.

Yes, it's fundamental and I am able to catch output in case when compilers uses standard console output. I am not sure it Java does it.

There is another way - redirect output to file and fill in LOG file entry. After compilation you will see your log file output.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2023 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR