Author Topic: JavaSMFBackup as a "daemon" on a server with no "desktop"?  (Read 13646 times)

sxxxe83

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
JavaSMFBackup as a "daemon" on a server with no "desktop"?
« on: October 20, 2008, 11:55:30 pm »
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#

This is an debian etch server with no "Desktop/GUI". Or im I just missing something?

Regards,

sXe

viulian

  • Administrator
  • Newbie
  • *****
  • Posts: 38
  • Karma: +1/-0
    • View Profile
Re: JavaSMFBackup as a "daemon" on a server with no "desktop"?
« Reply #1 on: October 21, 2008, 12:02:28 am »
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

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: JavaSMFBackup as a "daemon" on a server with no "desktop"?
« Reply #2 on: October 21, 2008, 12:03:15 am »
Okey  ;)

Thx for quick reply.

sXe

viulian

  • Administrator
  • Newbie
  • *****
  • Posts: 38
  • Karma: +1/-0
    • View Profile
Re: JavaSMFBackup as a "daemon" on a server with no "desktop"?
« Reply #3 on: October 21, 2008, 12:18:11 am »
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,