Dear ImageJ List Members,
The system admin for the Mac cluster I'm using installed headless
ImageJ for me on the cluster. We tried running a simple macro,
Arrays.txt. He could only get it to work if logged in as root.
Otherwise he gets the errors listed below.
Any thoughts?
Thanks,
Brian
----- Forwarded message from
[hidden email] -----
Date: Tue, 29 Apr 2008 14:16:57 -0500
From: Wan Lee
Reply-To: Wan Lee
Subject: Re: advice on running ImageJ headless
To:
Hi Brian,
I have downloaded headless.jar on /Volumes/xserveraid/Applications/
ImageJ/. I tried to run one of the simple macros in batch mode as an
user and a root.
As an user, there are still permission problem, but as a root, it ran
through. I give you this result for your information.
[wlee ImageJ]$ java -classpath headless-ij.jar:ij.jar
ij.ImageJ -batch Arrays.txt
kCGErrorRangeCheck : Window Server communications from outside of
session allowed for root and console user only
Exception in thread "main" java.lang.InternalError: Can't connect to
window server - not enough permissions.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:506)
[root ImageJ]# java -classpath headless-ij.jar:ij.jar
ij.ImageJ -batch Arrays.txt
0: 4
1: 3
2: 2
3: 1
4: 0
0: 7.89
1: 4.56
2: 1.23
0: rabbit
1: mouse
2: dog
3: cat