Muffin's -nw switch is broken. It doesn't create windows (correct). However it still loads classes and makes instances which require connections to a GUI. As a result when you do:
java -jar muffin-0.9.3a.jar -nw
- on MacOS X, this doesn't work unless you have the GUI running, and a Muffin app icon annoyingly appears in your dock.
- on Solaris (and I imagine other X boxen) if you run this from a terminal with X not running, you get:
Muffin version 0.9.3a, Copyright (C) 1996-2000 Mark R. Boyns <boyns@doit.org>
Muffin comes with ABSOLUTELY NO WARRANTY; for details see Help/License.
This is free software, and you are welcome to redistribute it
under certain conditions; see Help/License for details.
Creating new configuration: default.conf
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.<init>(Window.java:188)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:294)
at org.doit.muffin.MuffinFrame.<init>(MuffinFrame.java)
at org.doit.muffin.Main.<init>(Main.java)
at org.doit.muffin.Main.main(Main.java)
This is just wrong. Muffin should be launchable from a CLI and not *have* to require ANY GUI resources whatsoever. But it does require them right now.
Sean Luke
sean@cs.gmu.edu
Logged In: YES
user_id=1072308
I think muffin is now a dead project. Too bad.
But here is the trick that I use, make a vncserver, and give
muffin the DISPLAY of that server.