The solutions offered do not resolve the problem or do not adress the problem.
Main Topics
Browse All TopicsInstalling an application that requiresjava GUI. Jave installed correctly but get message Could not initialize class sun.awt.X11GraphicsEnviron
Googled and found System.setProperty("java.a
Command allegedley will solve initial problem but will not execute as syntax error near unexpected token `'java.awt.headless"''.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Set JAVA_OPTIONS to include headless setting but still no joy starting X. The server causing the problem is a dedicated server hosted externally. Created a new inhouse environment Installed Centos 5.3 from scratch. Used Yum to install all required X relate packages. Software installed without problem. Thinks it may be something the management company disabled when setting up the server.
Normally it doesn't make a lot of sense to isntall X on a headless network oriented server.
Just because there is not graphical environment, AND X11 is not exactly known as a security oriented product.
It's just too large, parts of it need to be run as root or you need to give wide ranging permissions to hardware components to make it work...
Here is the explanation how it works:
http://java.sun.com/develo
the procedure you mentioned (with " only in stead of mixed ' & ") is actualy the first call in main.
As a entry in the symbols that should presumably be, if you could specify it on the commandline...
export JAVA_OPTIONS="${JAVAOPTION
Business Accounts
Answer for Membership
by: nociPosted on 2009-11-03 at 04:59:08ID: 25728441
This is java code, not a command shell instruction:
System.setProperty ('java.awt.headless"' 'true');
Probably it needs to be insterted into your program BEFORE any call to the java.awt stuff... but I am no java expert.
This is not a linux/readhad/centos problem per se. It means you miss some components to use the java.awt stuff expected by your program.
(f.e. X server, some libraries?)