I guess you have to run your program from the native console, if you want to have output to the native console. I have no idea whether it's possible to redirect Netbeans' standard output channel. I doubt it because you'd still have to plug together the pipes of separate processes, but you might get more information at a Netbeans forum.