Login  Register

Re: ImageJ and X11

Posted by Stansfield, William on Mar 13, 2007; 9:37pm
URL: http://imagej.273.s1.nabble.com/ImageJ-and-X11-tp3700081p3700084.html

Mohana,
 
Without being an expert, I can tell you that I rec'd similar error messages in switching from Mac to Unix processing.
1st, when you log in to your system using X11, make sure that you ssh with X-window display forwarding:
     ssh -X [hidden email]
 
Next, you should probably use the latest versions of ImageJ and Java; last time I updated it was 1.38j and Java v1.6.
 
It may or may not help to run your macros in batch mode, which turns off ImageJ's desire to display images as it generates them.
 
That was my experience.
Good luck,
Bill Stansfield
 
 
________________________________

From: ImageJ Interest Group on behalf of Mohana Ramaratnam
Sent: Tue 3/13/2007 4:12 PM
To: [hidden email]
Subject: ImageJ and X11



Hello,



I want to use ImageJ as a "background" process to create some images.
These images are not viewed but written on disk. The environment that I
am running this is on doesn't have any DISPLAY variable.



I have tried launching my java app with -Djava.awt.headless=true with no
success (java version 1.5.0_06 OS: solaris).



The error that I get is:



java.awt.HeadlessException



at java.awt.GraphicsEnvironment.checkHeadless
(GraphicsEnvironment.java:159)

at java.awt.Window. <init> (Window.java:317)

....

at ij.process.ImageProcessor.setupFrame (ImageProcessor.java:827)

at ij.process.ImageProcessor.getStringWidth (ImageProcessor.java:934)

....



Does anybody have any suggestions?



Mohana