This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 144562 - Console class is not 'supported' by IDE
Summary: Console class is not 'supported' by IDE
Status: RESOLVED DUPLICATE of bug 68770
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
Depends on:
Reported: 2008-08-20 11:39 UTC by shche123
Modified: 2008-09-25 19:02 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description shche123 2008-08-20 11:39:54 UTC
Console class is not 'supported' by the IDE.

System.console() returns null when the code is run by NetBeans. Need to go to Command line to test the code. There must
be a better way.

Comment 1 Tomas Danek 2008-08-21 11:46:03 UTC
Can someone give an answer why is console not available and therefor System.console(); returns null?
Comment 2 Lukas Hasik 2008-08-21 12:17:46 UTC
no idea who reassign to. Jesse, Jarda don't you know where is the problem or who should be responsible for it?
Comment 3 Jesse Glick 2008-08-22 01:29:24 UTC
A program run through Ant is not connected to a true console, so this cannot work. A future release of NetBeans will
probably run user Java programs in a different way.
Comment 4 Jesse Glick 2008-09-25 19:01:18 UTC
Comment 5 Jesse Glick 2008-09-25 19:02:20 UTC

*** This issue has been marked as a duplicate of 68770 ***