(08-08-2012 17:17)simoncn Wrote: I didn't know about the java.awt.headless property. FYI, there's a MinimServer property you can use to get the same effect:
java -jar ../lib/minimserver.jar --set watch.view=console
I had to use java.awt.headless because I didn't know about watch.view, otherwise minimserver try to launch the Swing tray and it fails if X is not installed. Maybe this Exception can be catched, automatically falling back to a headless setup (without requiring either java.awt.headless or watch.view which both work).
Code:
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-7-oracle/jre/lib/amd64/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:608)
at com.minimserver.TrayControl$TrayView.init(TrayControl.java:235)