471,337 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

headless mode and linux

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
1 3219
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.

Similar topics

1 post views Thread by de_subhadeep | last post: by
5 posts views Thread by Van Nguyen via DotNetMonster.com | last post: by
2 posts views Thread by Ole | last post: by
3 posts views Thread by frakie | last post: by
2 posts views Thread by Brice Rebsamen | last post: by
7 posts views Thread by Michele Simionato | last post: by
15 posts views Thread by =?ISO-8859-15?Q?L=E9na=EFc?= Huard | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.