By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,739 Members | 2,014 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,739 IT Pros & Developers. It's quick & easy.

headless mode and linux

P: n/a
Hi All,

I heard that we can set -Djava.awt.headless=true in JDK 1.4. With this
setting, do I still need XServer on Linux machine if I am doing AWT
stuff ? Without XServer I am getting HeadlessException.

Thanks for any insight.

Vissu
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Don't you need a display to use awt stuff....by definition of the fact
that it is used for GUI programming? As long as you do not attempt to
use any "graphics" java will run "headless". But, if you are attempting
to run a GUI on a headless system, then I would suggest you download and
install xvfb (X virtual frame buffer):

http://www.xfree86.org/4.0.1/Xvfb.1.html

-Misk
Vissu wrote:
Hi All,

I heard that we can set -Djava.awt.headless=true in JDK 1.4. With this
setting, do I still need XServer on Linux machine if I am doing AWT
stuff ? Without XServer I am getting HeadlessException.

Thanks for any insight.

Vissu

--
================================================== ======================
Missaka Wijekoon (a.k.a. Misk) mw*******@RemoveThis.villageEdocs.com
Sr. Software Engineer http://www.villageEdocs.com
VillageEdocs
================================================== ======================
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.