linux - How do I prevent a headless exception in Java? -


I have an applet and when I try to run it on my laptop, go to an exception exception exception line Is thrown by a JFrame is created Now I know that in Jephrah is usually the reason for the exception but my computer was in the beginning without any possible mode. I am still not sure whether the headless mode is completely confused .

I am running Ubuntu and there is a very new version of Java.

In addition to this, I successfully successfully installed JFrames and Windows on their laptop in Eclipse (if it helps).

Did you set the setting java.awt.headless = true ? I did this once before, in which there is no X-server on Solaris so that Java No print libraries can be used. It was a treat though it was more than five years ago and I do not have a source.

See

PS Are you on Ubuntu Server or Desktop? If the latter, then I had a question that why Java thinks that you are innocent.

Comments