You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Karl Tauber <ka...@jformdesigner.com> on 2022/01/20 09:26:44 UTC
How to get output of System.out.println() in NB Output view?
Hi,
while working on improvements/fixes for FlatLaf support in NetBeans, I'd
like to temporary add some System.out.println() to NetBeans core modules
and see its output in the NetBeans Output view. But it does not show up.
The printlns are compiled. I've checked it with the debugger.
-J-Dnetbeans.logger.console=true did not help.
The last lines in the Output view are:
debug:
nbbuild.tryme-debug:
Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this may
take a moment...
nbbuild.tryme-setup-debug-args:
nbbuild.tryme:
I'm using NetBeans 12.6 with Java 11
Any ideas?
Thanks,
Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by antonio <an...@vieiro.net>.
Hi Karl,
We prefer to use Java Logging [1] instead of System.out.println.
The advantages are:
- You don't depend on 3rd party libraries (this is included in the JDK).
- You can log messages with a priority (a Level) so you can tune what
users finally see. So you don't have to forget to remove
"System.out.println" in your code.
Once you have these logs calls in place in your code you can use the
"View/IDE Log" in NetBeans to see the messages. No need to look outside
the IDE.
Hope this helps,
Antonio
[1]
On 20/01/2022 10:26, Karl Tauber wrote:
> Hi,
>
> while working on improvements/fixes for FlatLaf support in NetBeans, I'd
> like to temporary add some System.out.println() to NetBeans core modules
> and see its output in the NetBeans Output view. But it does not show up.
>
> The printlns are compiled. I've checked it with the debugger.
>
> -J-Dnetbeans.logger.console=true did not help.
>
> The last lines in the Output view are:
> debug:
> nbbuild.tryme-debug:
> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this may
> take a moment...
> nbbuild.tryme-setup-debug-args:
> nbbuild.tryme:
>
>
>
> I'm using NetBeans 12.6 with Java 11
>
> Any ideas?
>
> Thanks,
> Karl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Peter Blemel <pb...@hotmail.com>.
Depending on what you're trying to do, I think you may need an IO provider.
import org.openide.windows.IOProvider;
import org.openide.windows.InputOutput;
import org.openide.windows.OutputWriter;
// Get an output window tab.
InputOutput io = IOProvider.getDefault().getIO(TAB_NAME, false);
io.select();
writer = io.getOut();
writer .println("Hello world\n");
Peter
________________________________
From: Karl Tauber <ka...@jformdesigner.com>
Sent: Thursday, January 20, 2022 5:27 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>
Subject: Re: How to get output of System.out.println() in NB Output view?
that's what I expect, but it does not show up in the Output window.
When I create a simple Ant project app, it works.
But when running NetBeans IDE from NetBeans, it does not.
Karl
Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
> it won't show up in the log view, however, if you start the platform
> application or module with netbeans (e.g run project), it should be
> visible in the output window (of the IDE, not from the app).
>
> -mbien
>
> On 20.01.22 10:26, Karl Tauber wrote:
>> Hi,
>>
>> while working on improvements/fixes for FlatLaf support in NetBeans,
>> I'd like to temporary add some System.out.println() to NetBeans core
>> modules and see its output in the NetBeans Output view. But it does
>> not show up.
>>
>> The printlns are compiled. I've checked it with the debugger.
>>
>> -J-Dnetbeans.logger.console=true did not help.
>>
>> The last lines in the Output view are:
>> debug:
>> nbbuild.tryme-debug:
>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>> may take a moment...
>> nbbuild.tryme-setup-debug-args:
>> nbbuild.tryme:
>>
>>
>>
>> I'm using NetBeans 12.6 with Java 11
>>
>> Any ideas?
>>
>> Thanks,
>> Karl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Michael Bien <mb...@gmail.com>.
Interesting, I don't even consider 32bit as an option these days (even
my old raspi runs a 64bit kernel and VMs).
If this is often a problem we could make 64bit the default in the config
(in case it has trouble to detect the system it would just set it to 64
as default).
-mbien
On 20.01.22 14:30, Eirik Bakke wrote:
>> the problem is the "64-bit VM" detection in the ant script that expects the old Java <9 installation directory.
>> I found this a while ago but didn't found time to create a proper PR, sorry.
> I remember fixing a similar bug a while back, for the maven NetBeans Platform app runner. If it's any help, here's the code I ended up using for detecting 32-bit vs. 64-bit Java installations:
>
> https://github.com/mojohaus/nbm-maven-plugin/pull/46
> https://github.com/apache/netbeans-parent/pull/1
>
> -- Eirik
>
> -----Original Message-----
> From: Jens Hofschröer <em...@nigjo.de>
> Sent: Thursday, January 20, 2022 8:15 AM
> To: dev@netbeans.apache.org
> Subject: Re: How to get output of System.out.println() in NB Output view?
>
> Hi
>
> the problem is the "64-bit VM" detection in the ant script that expects the old Java <9 installation directory.
>
> set jvm.arch.string=64 on CLI or in your private.properties and you will see the output again.
>
> The problem is in harness/run.xml (search for "architecture of jvm on which app will run"). I found this a while ago but didn't found time to create a proper PR, sorry.
>
> Jens
>
> Am 20.01.2022 um 13:27 schrieb Karl Tauber:
>> that's what I expect, but it does not show up in the Output window.
>>
>> When I create a simple Ant project app, it works.
>> But when running NetBeans IDE from NetBeans, it does not.
>>
>> Karl
>>
>>
>> Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
>>> it won't show up in the log view, however, if you start the platform
>>> application or module with netbeans (e.g run project), it should be
>>> visible in the output window (of the IDE, not from the app).
>>>
>>> -mbien
>>>
>>> On 20.01.22 10:26, Karl Tauber wrote:
>>>> Hi,
>>>>
>>>> while working on improvements/fixes for FlatLaf support in NetBeans,
>>>> I'd like to temporary add some System.out.println() to NetBeans core
>>>> modules and see its output in the NetBeans Output view. But it does
>>>> not show up.
>>>>
>>>> The printlns are compiled. I've checked it with the debugger.
>>>>
>>>> -J-Dnetbeans.logger.console=true did not help.
>>>>
>>>> The last lines in the Output view are:
>>>> debug:
>>>> nbbuild.tryme-debug:
>>>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>>>> may take a moment...
>>>> nbbuild.tryme-setup-debug-args:
>>>> nbbuild.tryme:
>>>>
>>>>
>>>>
>>>> I'm using NetBeans 12.6 with Java 11
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>> Karl
>>>>
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
RE: How to get output of System.out.println() in NB Output view?
Posted by Eirik Bakke <eb...@ultorg.com>.
> the problem is the "64-bit VM" detection in the ant script that expects the old Java <9 installation directory.
> I found this a while ago but didn't found time to create a proper PR, sorry.
I remember fixing a similar bug a while back, for the maven NetBeans Platform app runner. If it's any help, here's the code I ended up using for detecting 32-bit vs. 64-bit Java installations:
https://github.com/mojohaus/nbm-maven-plugin/pull/46
https://github.com/apache/netbeans-parent/pull/1
-- Eirik
-----Original Message-----
From: Jens Hofschröer <em...@nigjo.de>
Sent: Thursday, January 20, 2022 8:15 AM
To: dev@netbeans.apache.org
Subject: Re: How to get output of System.out.println() in NB Output view?
Hi
the problem is the "64-bit VM" detection in the ant script that expects the old Java <9 installation directory.
set jvm.arch.string=64 on CLI or in your private.properties and you will see the output again.
The problem is in harness/run.xml (search for "architecture of jvm on which app will run"). I found this a while ago but didn't found time to create a proper PR, sorry.
Jens
Am 20.01.2022 um 13:27 schrieb Karl Tauber:
> that's what I expect, but it does not show up in the Output window.
>
> When I create a simple Ant project app, it works.
> But when running NetBeans IDE from NetBeans, it does not.
>
> Karl
>
>
> Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
>> it won't show up in the log view, however, if you start the platform
>> application or module with netbeans (e.g run project), it should be
>> visible in the output window (of the IDE, not from the app).
>>
>> -mbien
>>
>> On 20.01.22 10:26, Karl Tauber wrote:
>>> Hi,
>>>
>>> while working on improvements/fixes for FlatLaf support in NetBeans,
>>> I'd like to temporary add some System.out.println() to NetBeans core
>>> modules and see its output in the NetBeans Output view. But it does
>>> not show up.
>>>
>>> The printlns are compiled. I've checked it with the debugger.
>>>
>>> -J-Dnetbeans.logger.console=true did not help.
>>>
>>> The last lines in the Output view are:
>>> debug:
>>> nbbuild.tryme-debug:
>>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>>> may take a moment...
>>> nbbuild.tryme-setup-debug-args:
>>> nbbuild.tryme:
>>>
>>>
>>>
>>> I'm using NetBeans 12.6 with Java 11
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>> Karl
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Karl Tauber <ka...@jformdesigner.com>.
Hi,
I've created a PR for this:
https://github.com/apache/netbeans/pull/3522
Karl
Am 1/20/2022 um 2:14 PM schrieb Jens Hofschröer:
> Hi
>
> the problem is the "64-bit VM" detection in the ant script that expects
> the old Java <9 installation directory.
>
> set jvm.arch.string=64 on CLI or in your private.properties and you will
> see the output again.
>
> The problem is in harness/run.xml (search for "architecture of jvm on
> which app will run"). I found this a while ago but didn't found time to
> create a proper PR, sorry.
>
> Jens
>
> Am 20.01.2022 um 13:27 schrieb Karl Tauber:
>> that's what I expect, but it does not show up in the Output window.
>>
>> When I create a simple Ant project app, it works.
>> But when running NetBeans IDE from NetBeans, it does not.
>>
>> Karl
>>
>>
>> Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
>>> it won't show up in the log view, however, if you start the platform
>>> application or module with netbeans (e.g run project), it should be
>>> visible in the output window (of the IDE, not from the app).
>>>
>>> -mbien
>>>
>>> On 20.01.22 10:26, Karl Tauber wrote:
>>>> Hi,
>>>>
>>>> while working on improvements/fixes for FlatLaf support in NetBeans,
>>>> I'd like to temporary add some System.out.println() to NetBeans core
>>>> modules and see its output in the NetBeans Output view. But it does
>>>> not show up.
>>>>
>>>> The printlns are compiled. I've checked it with the debugger.
>>>>
>>>> -J-Dnetbeans.logger.console=true did not help.
>>>>
>>>> The last lines in the Output view are:
>>>> debug:
>>>> nbbuild.tryme-debug:
>>>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>>>> may take a moment...
>>>> nbbuild.tryme-setup-debug-args:
>>>> nbbuild.tryme:
>>>>
>>>>
>>>>
>>>> I'm using NetBeans 12.6 with Java 11
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>> Karl
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Karl Tauber <ka...@jformdesigner.com>.
Many thanks Jens!
Yes, it works with jvm.arch.string=64
I've added it in NetBeans Options dialog to "Java > Ant > Properties".
Karl
Am 1/20/2022 um 2:14 PM schrieb Jens Hofschröer:
> Hi
>
> the problem is the "64-bit VM" detection in the ant script that expects
> the old Java <9 installation directory.
>
> set jvm.arch.string=64 on CLI or in your private.properties and you will
> see the output again.
>
> The problem is in harness/run.xml (search for "architecture of jvm on
> which app will run"). I found this a while ago but didn't found time to
> create a proper PR, sorry.
>
> Jens
>
> Am 20.01.2022 um 13:27 schrieb Karl Tauber:
>> that's what I expect, but it does not show up in the Output window.
>>
>> When I create a simple Ant project app, it works.
>> But when running NetBeans IDE from NetBeans, it does not.
>>
>> Karl
>>
>>
>> Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
>>> it won't show up in the log view, however, if you start the platform
>>> application or module with netbeans (e.g run project), it should be
>>> visible in the output window (of the IDE, not from the app).
>>>
>>> -mbien
>>>
>>> On 20.01.22 10:26, Karl Tauber wrote:
>>>> Hi,
>>>>
>>>> while working on improvements/fixes for FlatLaf support in NetBeans,
>>>> I'd like to temporary add some System.out.println() to NetBeans core
>>>> modules and see its output in the NetBeans Output view. But it does
>>>> not show up.
>>>>
>>>> The printlns are compiled. I've checked it with the debugger.
>>>>
>>>> -J-Dnetbeans.logger.console=true did not help.
>>>>
>>>> The last lines in the Output view are:
>>>> debug:
>>>> nbbuild.tryme-debug:
>>>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>>>> may take a moment...
>>>> nbbuild.tryme-setup-debug-args:
>>>> nbbuild.tryme:
>>>>
>>>>
>>>>
>>>> I'm using NetBeans 12.6 with Java 11
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>> Karl
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Jens Hofschröer <em...@nigjo.de>.
Hi
the problem is the "64-bit VM" detection in the ant script that expects
the old Java <9 installation directory.
set jvm.arch.string=64 on CLI or in your private.properties and you will
see the output again.
The problem is in harness/run.xml (search for "architecture of jvm on
which app will run"). I found this a while ago but didn't found time to
create a proper PR, sorry.
Jens
Am 20.01.2022 um 13:27 schrieb Karl Tauber:
> that's what I expect, but it does not show up in the Output window.
>
> When I create a simple Ant project app, it works.
> But when running NetBeans IDE from NetBeans, it does not.
>
> Karl
>
>
> Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
>> it won't show up in the log view, however, if you start the platform
>> application or module with netbeans (e.g run project), it should be
>> visible in the output window (of the IDE, not from the app).
>>
>> -mbien
>>
>> On 20.01.22 10:26, Karl Tauber wrote:
>>> Hi,
>>>
>>> while working on improvements/fixes for FlatLaf support in NetBeans,
>>> I'd like to temporary add some System.out.println() to NetBeans core
>>> modules and see its output in the NetBeans Output view. But it does
>>> not show up.
>>>
>>> The printlns are compiled. I've checked it with the debugger.
>>>
>>> -J-Dnetbeans.logger.console=true did not help.
>>>
>>> The last lines in the Output view are:
>>> debug:
>>> nbbuild.tryme-debug:
>>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>>> may take a moment...
>>> nbbuild.tryme-setup-debug-args:
>>> nbbuild.tryme:
>>>
>>>
>>>
>>> I'm using NetBeans 12.6 with Java 11
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>> Karl
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Karl Tauber <ka...@jformdesigner.com>.
that's what I expect, but it does not show up in the Output window.
When I create a simple Ant project app, it works.
But when running NetBeans IDE from NetBeans, it does not.
Karl
Am 1/20/2022 um 12:18 PM schrieb Michael Bien:
> it won't show up in the log view, however, if you start the platform
> application or module with netbeans (e.g run project), it should be
> visible in the output window (of the IDE, not from the app).
>
> -mbien
>
> On 20.01.22 10:26, Karl Tauber wrote:
>> Hi,
>>
>> while working on improvements/fixes for FlatLaf support in NetBeans,
>> I'd like to temporary add some System.out.println() to NetBeans core
>> modules and see its output in the NetBeans Output view. But it does
>> not show up.
>>
>> The printlns are compiled. I've checked it with the debugger.
>>
>> -J-Dnetbeans.logger.console=true did not help.
>>
>> The last lines in the Output view are:
>> debug:
>> nbbuild.tryme-debug:
>> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
>> may take a moment...
>> nbbuild.tryme-setup-debug-args:
>> nbbuild.tryme:
>>
>>
>>
>> I'm using NetBeans 12.6 with Java 11
>>
>> Any ideas?
>>
>> Thanks,
>> Karl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Patrik Karlström <pa...@trixon.se>.
IIRC System.err shows up when .out do not.
Den fre 21 jan. 2022 11:54Michael Bien <mb...@gmail.com> skrev:
> we are talking about different things :)
>
> the original post was about debugging with some System.out.println(). I
> don't think this is copied to the IDE log. You would only see it in the
> output (IDE output or shell) - assuming you don't run into the 32/64bit
> bug which was mentioned before and I didn't know about.
>
> proper loggers do of course land in the actual log as you said.
>
> -mbien
>
> On 21.01.22 11:40, antonio wrote:
> > I'm luck to see it in the Show/IDE Log then... :-)
> >
> > https://imgur.com/a/q0cHCuI
> >
> > Maybe you should try using INFO/SEVERE levels, though.
> >
> > Cheers,
> > Antonio
> >
> > On 20/01/2022 12:18, Michael Bien wrote:
> >> it won't show up in the log view, however, if you start the platform
> >> application or module with netbeans (e.g run project), it should be
> >> visible in the output window (of the IDE, not from the app).
> >>
> >> -mbien
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: dev-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
Re: How to get output of System.out.println() in NB Output view?
Posted by Michael Bien <mb...@gmail.com>.
we are talking about different things :)
the original post was about debugging with some System.out.println(). I
don't think this is copied to the IDE log. You would only see it in the
output (IDE output or shell) - assuming you don't run into the 32/64bit
bug which was mentioned before and I didn't know about.
proper loggers do of course land in the actual log as you said.
-mbien
On 21.01.22 11:40, antonio wrote:
> I'm luck to see it in the Show/IDE Log then... :-)
>
> https://imgur.com/a/q0cHCuI
>
> Maybe you should try using INFO/SEVERE levels, though.
>
> Cheers,
> Antonio
>
> On 20/01/2022 12:18, Michael Bien wrote:
>> it won't show up in the log view, however, if you start the platform
>> application or module with netbeans (e.g run project), it should be
>> visible in the output window (of the IDE, not from the app).
>>
>> -mbien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by antonio <an...@vieiro.net>.
I'm luck to see it in the Show/IDE Log then... :-)
https://imgur.com/a/q0cHCuI
Maybe you should try using INFO/SEVERE levels, though.
Cheers,
Antonio
On 20/01/2022 12:18, Michael Bien wrote:
> it won't show up in the log view, however, if you start the platform
> application or module with netbeans (e.g run project), it should be
> visible in the output window (of the IDE, not from the app).
>
> -mbien
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to get output of System.out.println() in NB Output view?
Posted by Michael Bien <mb...@gmail.com>.
it won't show up in the log view, however, if you start the platform
application or module with netbeans (e.g run project), it should be
visible in the output window (of the IDE, not from the app).
-mbien
On 20.01.22 10:26, Karl Tauber wrote:
> Hi,
>
> while working on improvements/fixes for FlatLaf support in NetBeans,
> I'd like to temporary add some System.out.println() to NetBeans core
> modules and see its output in the NetBeans Output view. But it does
> not show up.
>
> The printlns are compiled. I've checked it with the debugger.
>
> -J-Dnetbeans.logger.console=true did not help.
>
> The last lines in the Output view are:
> debug:
> nbbuild.tryme-debug:
> Searching for JARs in D:\Java\netbeans-apache\nbbuild\netbeans, this
> may take a moment...
> nbbuild.tryme-setup-debug-args:
> nbbuild.tryme:
>
>
>
> I'm using NetBeans 12.6 with Java 11
>
> Any ideas?
>
> Thanks,
> Karl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists