This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a jar file which contains several classes that have contained in them. This code is 'attached' to another far bigger application which runs a Swing GUI but doesn't have a DOS window. Is it possible that having these System.out.printlns could cause a problem when they are reached - because there's nowhere to write to. At least nowhere that I can see. I don't have any way of making the GUI application launch a DOS window. Thanks. Paul
As far as I know, these are not a problem; the Swing GUI is probably running by invoking javaw instead of java (the latter has a command prompt, the former does not), and I've never had any problems with my printlns.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
In your case i would use a logging framework like log4j or logkit (based on log4j) there you can easily set up logging into a file. (You see log4j in all App Servers and most of the tools) It is a jakarta framework which you can findhere There you can write to so called appenders (console, syslogd, file etc.) Olli [ June 06, 2003: Message edited by: Oliver Refle ]