Bugzilla – Bug 628 |
cannot build fiji on linux |
Last modified: 2013-07-10 11:44:20 CDT |
⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
Created attachment 107 Screenshot building on Windows
Actually, I just found another bug, but before that, I found another bug: if I do not pass --headless, I get a completely different stacktrace from yours: On Tue, 9 Jul 2013, Olexandra Ovsiy wrote: > Dear Johannes, > > When I run ImageJ-linux64 launcher from the cluster, I still get an error: > > ./ImageJ-linux64 --headless -eval "print ('Hello World');" > Error while executing the main() method of class 'fiji.Main': > java.awt.HeadlessException > at > java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) > at java.awt.Window.<init>(Window.java:432) > at java.awt.Frame.<init>(Frame.java:403) > at ij.ImageJ.<init>(ImageJ.java:137) > at ij.ImageJ.main(ImageJ.java:670) > at fiji.Main.main(Main.java:130) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at imagej.ClassLauncher.launch(ClassLauncher.java:224) > at imagej.ClassLauncher.run(ClassLauncher.java:161) > at imagej.ClassLauncher.main(ClassLauncher.java:72) > > Does the launcher support headless mode? Do I have to manually load > headless.jar? > > Best, > Olex $ DISPLAY= ./ImageJ-linux64 -eval 'print("Hello world");' Error while executing the main() method of class 'fiji.Main': java.lang.InternalError: Can't connect to X11 window server using '' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at java.awt.Toolkit$2.run(Toolkit.java:834) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826) at fiji.gui.FileDialogDecorator.registerAutomaticDecorator(FileDialogDecorator.java:142) at fiji.Main.premain(Main.java:87) at fiji.Main.main(Main.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at imagej.ClassLauncher.launch(ClassLauncher.java:224) at imagej.ClassLauncher.run(ClassLauncher.java:161) at imagej.ClassLauncher.main(ClassLauncher.java:72) Will have to postpone that for a couple of hours, but then fix it and keep you posted!