xdisplay java imagej

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xdisplay java imagej

Lucy W Upchurch
Hi,

We are trying to run imagej on a remote computer (mac Leopard OS) and
display the images on a local computer (another mac) via ssh.  I have set
my environment variable to the local machine when I ssh to the remote
machine.  I can do an XClock or Xeyes on the remote machine and it displays
on the local machine.  However, if I run imageJ, my images are displayed on
the remote computer, not my local machine.  I can not change the shell to
anything else as tcsh is required for other scripts/programs.  Any ideas on
how to get java to change the DISPLAY setting?  Thanks.

Lucy







                 Lucy Upchurch
       DUMC Center for InVivo Microscopy
        Bryan Research Building Rm. 129
                 Research Drive
         Durham, North Carolina  27710
            Telephone:  919-684-7781
              Pager: 919-970-1893

         email:  [hidden email]
         http://www.civm.duhs.duke.edu







Reply | Threaded
Open this post in threaded view
|

Re: xdisplay java imagej

Albert Cardona
Lucy W Upchurch wrote:

> Hi,
>
> We are trying to run imagej on a remote computer (mac Leopard OS) and
> display the images on a local computer (another mac) via ssh.  I have set
> my environment variable to the local machine when I ssh to the remote
> machine.  I can do an XClock or Xeyes on the remote machine and it displays
> on the local machine.  However, if I run imageJ, my images are displayed on
> the remote computer, not my local machine.  I can not change the shell to
> anything else as tcsh is required for other scripts/programs.  Any ideas on
> how to get java to change the DISPLAY setting?  Thanks.
>  


Java in macosx does NOT use X11 window system.

But you can make it do so: use the openjdk 6 for bsd instead of the
internal macosx java.

To launch it, you'll need a script like:

$ cd /Applications/ImageJ/
$ /path/to/open-jdk6/bin/java -jar ij.jar


An alternative is to use a virtual desktop system, but I don't know of
any for macosx (I am sure there are some).

Albert

--
Albert Cardona
http://albert.rierol.net