Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install Java EE 6 on a RedHat machine. The machine is actually an AWS AMI. I have installed JDK succesfully but when I try to install Java EE, the console tells me I hace to set the DISPLAY environment variable. I have googled for a while and found that Java EE can only be installed with an X server running(hence the DISPLAY variable). I have no idea how to install this as a linux AMI doesn't have a X Window environment (correct me and illustrate me if I'm wrong). How can I get through with this?


P.D: I set the DISPLAY variable just to see what happens with no luck

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.openinstaller.core.EngineBootstrap.main(
SEVERE INTERNAL ERROR: Can't connect to X11 window server using '' as the value of the DISPLAY variable.
share|improve this question

I searched around a bit and found another user with the same problem trying to install glassfish.

Hope this helps.

See below: "a dummy X server will do (like xvfb The following steps should do the trick for you

yum install xorg-x11-server-Xvfb

Xvfb :1 -ac

export DISPLAY=:1.0

After this run your executable

In case u run into problem while seeting up Xvfb, then following url has some tips for the same"

share|improve this answer

To install Glassfish in a headless environment, just use the .zip package, and copy the files on your server, and you can run it with the usual asadmin command line ... I had one running this way on an EC2 instance. You don't even need Xvfb or else. Alternatively, I remeber there is a command line option with the installer which will allow you to bypass the graphical install, and have it run smoothly without ny window nor user interaction. You only need to prepare a file in advance, with a minimal set-up (including accepting the licence). I used that, until I realized the first option was much simpler ...

share|improve this answer
Are we talking about Glassfish or about Java EE 6 here? – Tonin Mar 26 '13 at 18:01
I have a similar problem. I need to get the silent installation of glassfish working on a redhat 6.2 server. the problem is that i cant get a dry run working because of the graphical install. i already tried to work it out with xming, but it didn't work either. could you give me the answer-file? the zip is not possible for me, because i need to get the silent install working... Or do you remember the command line option to bypass the graphical install? Regards, Konstantin – Kage Jul 2 '13 at 12:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.