Projects On Hex.ro - Questions and Answers > Java SMF Backup
JavaSMFBackup as a "daemon" on a server with no "desktop"?
(1/1)
sxxxe83:
Hi,
Nice app you have. Works great on windows machine. But on the linux server itself I got some error messages.
--- Quote ---~/JavaSMFBackup# ./runJavaSMFBackup.sh
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:318)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.JFrame.<init>(JFrame.java:150)
at smfbackup.MainWindow.<init>(MainWindow.java:72)
at smfbackup.Main$1.run(Main.java:44)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
~/JavaSMFBackup#
--- End quote ---
This is an debian etch server with no "Desktop/GUI". Or im I just missing something?
Regards,
sXe
viulian:
Hi,
You are right, the app does not work without a GUI... As it never crossed my mind to keep it running as a daemon, the GUI part cannot be disabled.
I will add this to the list of enhancements, thank you for letting me know!
sxxxe83:
Okey ;)
Thx for quick reply.
sXe
viulian:
Sure!
Maybe you can install tightvnc + some basic window manager - and run the application there. But I don't know if the VNC session will remain active after you disconnect.
The fonts will probably look ugly also.
If you try, please post back with the results.
Thanks,
Navigation
[0] Message Index