Re: problems with running macros from the command line

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

You can work around this problem by installing Xvfb, the X window
virtual frame buffer. I had to install it on the ImageJ server to get
the example servlet at http://rsb.info.nih.gov:8080/index.html to work.

-wayne

On Oct 4, 2006, at 12:26 PM, Kurt De Vos wrote:

> 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]
> *--*--*--*--*--*--*--*--*--*--*--*--*--*
>