Runs fine in command prompt but not in NetBeans??

Printable View