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

Summary: Console class is not 'supported' by IDE
Product: projects Reporter: shche123 <shche123>
Component: AntAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: anebuzelsky, jtulach, t_h
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.

Thanks
Leonid
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?
thanks
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
x
Comment 5 Jesse Glick 2008-09-25 19:02:20 UTC

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