> C:\Users\Mike\Documents\test-project>c:\clojure\clj.bat app.clj > Exception in thread "AWT-EventQueue-0" java.io.IOException: Stream > closed
The reason you are seeing this is that stdout has closed when the main clj program reaches the end, but the Swing thread is still running. I remember having this problem with an older build of Clojure but it doesn't happen for me anymore, so either something changed or the .bat file launching the script affects this behavior (I'm running on XP). If you put (read) at the end of your .clj file it will keep stdout open (until you enter some text at the consol). Here is a version which avoids the issue altogether by using a Dialog instead of stdout: http://groups.google.com/group/clojure/web/app.clj Regards, Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---