Hi Fred, 2009/12/14 Frédéric Morain-Nicolier <f.nicol...@gmail.com>: >> As far as I can tell, ImageJ isn't really suited for "headless" tasks, >> which is what I want to do; I want to run some image processing in the >> backend of a web app. I guess I'm going to try JAI first. > > Not sure to understand. By "headless" you mean without a human > operator? ImageJ is perfectly suited for this. You can use it as an > api which much more practical than JAI.
Headless typically means that the application will not open any windows and that you can run it without a windowing system present. The idea is that you can run your app from a scheduled script, on a server by logging on over SSH, or as part of a web application etc. IIRC Java AWT-based libraries require a windowing system on the machine. On Windows this is not a big deal since you're always running a windowing system, even on a server, but on linux where the windowing system is an optional install it causes problems. So on linux for example, a Java app that uses AWT in any form, will try to connect to an X windows server, and the app will fail to start if the X server is not present. This causes problems in both for scheduled scripts and server installations, because in the former case an X server might not be running, and in the latter case an X server might not even be installed on the system. If an X server is installed, it usually comes with a dummy X server that can be used to give a script something to connect to (I can't remember what the name of the actual executable was). In a past life I was generating bar codes dynamically on a web site and the bar code generation library used Java graphics libraries to generate GIFs. This surprisingly resulted in the code not running if an X server was not available on the linux server. The solution was to make sure that X was installed and then run the dummy X server in the background all the time. This was a while ago so maybe things have changed since then... > Fred -- ! Lauri -- 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 Note that posts from new members are moderated - please be patient with your first post. 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