Login  Register

Re: advice on running ImageJ headless

Posted by Albert Cardona on Apr 29, 2008; 6:47am
URL: http://imagej.273.s1.nabble.com/advice-on-running-ImageJ-headless-tp3696386p3696389.html

Brian Willkie wrote:
> Hi Albert,
>
> Thanks for the reply. I'm running on a Mac (cluster), so I'm not sure
> if this is an option. There's a mention of it on the wiki, but it's
> rather vague:
>
> http://imagejdocu.tudor.lu/imagej-documentation-wiki/faq/how-do-i-run-imagej-without-a-graphics-environment-headless/?searchterm=no%20gui 
>
>



As far as I remember, launching ImageJ from the comand line on a remote
mac will display the GUI in that remote mac no matter what (aqua
interface blues) but that should not be a problem at all: ImageJ will
run just the same.

So you don't need the Xvfb neither the DISPLAY variable.

If the run on a cluster macosx throws some sort of headless exception,
then use ImageJA headless.jar. It will work fine as long as the plugins
you execute neither import nor use any java.awt or javax.swing classes,
which includes the ImageWindow (extends java.awt.Window).

The headless.jar, when placed before ij.jar in the classpath, will
provide replacements (the classpath loads the first class found) for the
problematic ij.Menus and ij.GenericDialog.

Albert

--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona