Posted by
Kurt De Vos on
URL: http://imagej.273.s1.nabble.com/problems-with-running-macros-from-the-command-line-tp3701388p3701392.html
I get the same behavior:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an
operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.MenuComponent.<init>(Unknown Source)
at java.awt.MenuItem.<init>(Unknown Source)
at java.awt.MenuItem.<init>(Unknown Source)
at java.awt.Menu.<init>(Unknown Source)
at java.awt.Menu.<init>(Unknown Source)
at ij.Menus.addMenuBar(Menus.java:87)
at ij.IJ.init(IJ.java:333)
at ij.IJ.runMacroFile(IJ.java:93)
at ij.ImageJ.main(ImageJ.java:471)
With this error info, it should be possibel to customize ij to run
gui free.
kurt
On 4 Oct 2006, at 16:46, Albert Cardona wrote:
> -Djava.awt.headless=true
*--*--*--*--*--*--*--*--*--*--*--*--*--*
University of Sheffield
Academic Neurology Unit
Division of Genomic Medicine
E Floor, Medical School
Beech Hill Road
Sheffield
S10 2RX
United Kingdom
Tel: ++44 (0) 114 271 2473
Fax: ++44 (0) 114 226 1201
Email:
[hidden email]
*--*--*--*--*--*--*--*--*--*--*--*--*--*