Sorry for the short question, and long explanation.
My local Clojure program runs fine and uses GUI controls but, when run from a server, it fails. Can you help?
I have been testing Clojure sample code on a headless Ubuntu (14.04) server. I run the programs in LightTable, and then run them again with LT connected to a Ubuntu repl.
The program that doesn't work for me is one that opens a file chooser dialog, in native OS X, so that I can upload a document to the server. It appears that some GUI resource that is found by my Macbook, is not found by the server program. I had it working once, for an hour and, websites that I use find the functionality, no problem.
I feel that I've gotten in a hellish state, trying to make this sample work, and I really need it to work.
I have VirtualBox extension pack, which should provide VRDE.
I have variously tried different server startup options, and ssh options. If I set environment variables, my client program fails to make use of the details.
The worst part for me is that, it did work - once. My efforts to make the working changes permanent have broke it, again. Despite snapshot restores and a restore of my Macbook, I can't get this setup to work any longer.
In short, a GUI program that runs on the client, encounters problems when run from the server. Please help. I've been stuck for days.
I don't know if it helps but, I have Xauth installed and Webmin. Webmin is described as 'a web-based GUI admin tool for Linux.'
I've been advised to use Java WebStart but, I read that this is included and used automatically. I can't see a solution in investigating it, further.
I've provided the full error message, as copied from LightTable, in case that helps you to help me:
**java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
GraphicsEnvironment.java:207 java.awt.GraphicsEnvironment.checkHeadless
Window.java:535 java.awt.Window.<init>
Frame.java:420 java.awt.Frame.<init>
Frame.java:385 java.awt.Frame.<init>
JFrame.java:174 javax.swing.JFrame.<init>
(Unknown Source) com.ociweb.swing.proxy$javax.swing.JFrame$ActionListener$c1f703.<init>
(Unknown Source) com.ociweb.swing$eval7839.invoke
Compiler.java:6703 clojure.lang.Compiler.eval
Compiler.java:6666 clojure.lang.Compiler.eval
core.clj:2927 clojure.core/eval
eval.clj:77 lighttable.nrepl.eval/->result
AFn.java:156 clojure.lang.AFn.applyToHelper
AFn.java:144 clojure.lang.AFn.applyTo
core.clj:626 clojure.core/apply
core.clj:2468 clojure.core/partial[fn]
RestFn.java:408 clojure.lang.RestFn.invoke
core.clj:2559 clojure.core/map[fn]
LazySeq.java:40 clojure.lang.LazySeq.sval
LazySeq.java:49 clojure.lang.LazySeq.seq
RT.java:484 clojure.lang.RT.seq
core.clj:133 clojure.core/seq
core.clj:2595 clojure.core/filter[fn]
LazySeq.java:40 clojure.lang.LazySeq.sval
LazySeq.java:56 clojure.lang.LazySeq.seq
Cons.java:39 clojure.lang.Cons.next
LazySeq.java:81 clojure.lang.LazySeq.next
RT.java:598 clojure.lang.RT.next
core.clj:64 clojure.core/next
core.clj:2856 clojure.core/dorun
core.clj:2871 clojure.core/doall
eval.clj:126 lighttable.nrepl.eval/eval-clj
RestFn.java:442 clojure.lang.RestFn.invoke
sonar.clj:215 lighttable.nrepl.sonar/eval5355[fn]
AFn.java:152 clojure.lang.AFn.applyToHelper
AFn.java:144 clojure.lang.AFn.applyTo
core.clj:624 clojure.core/apply
core.clj:1862 clojure.core/with-bindings*
RestFn.java:425 clojure.lang.RestFn.invoke
sonar.clj:203 lighttable.nrepl.sonar/eval5355[fn]
MultiFn.java:227 clojure.lang.MultiFn.invoke
core.clj:98 lighttable.nrepl.core/queued[fn]
core.clj:2402 clojure.core/comp[fn]
interruptible_eval.clj:138 clojure.tools.nrepl.middleware.interruptible-eval/run-next[fn]
AFn.java:22 clojure.lang.AFn.run
ThreadPoolExecutor.java:1145 java.util.concurrent.ThreadPoolExecutor.runWorker
ThreadPoolExecutor.java:615 java.util.concurrent.ThreadPoolExecutor$Worker.run
Thread.java:744 java.lang.Thread.run**