Re: problems with running macros from the command line

Posted by dscho on
URL: http://imagej.273.s1.nabble.com/problems-with-running-macros-from-the-command-line-tp3701388p3701389.html

Hi,

On Wed, 4 Oct 2006, Albert Cardona wrote:

> $ java -classpath ij.jar ij.ImageJ macros/any.txt

Did you forget "-batch"?

I found a trick which makes it work here: set DISPLAY to empty:

$ DISPLAY= java -classpath ij.jar ij.ImageJ -batch macros/any.txt

Having said that, I think it is a bug to try to initialize X11 headlessly.

Ciao,
Dscho