Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I downloaded glassfish-3.1.2.2-unix.sh from glassfish.java.net. To install I did

chmod +x glassfish-3.1.2.2-unix.sh 

then i tried to run it :

$ ./glassfish-3.1.2.2-unix.sh 
This program requires DISPLAY environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY.

Any idea ?

Thanks

share|improve this question
add comment

1 Answer 1

up vote 6 down vote accepted

The DISPLAY variable tells the X11 libraries where the X11 server is located.

Try

 export DISPLAY=:0

I do not believe the Unix installer supports installing OS X services, so unless you have very explicit needs at this time you can get along just with the zip-distribution of Glassfish. Unzip it and run asadmin start-domain.

share|improve this answer
    
It worked both ways :) Thanks...however what is this command doing ? export DISPLAY=:0 ...i googled for it but still not very clear ... –  Cris Sep 8 '12 at 7:08
1  
It is a shell environment variable which is being set and made available to future programs. The ":0" means the first screen+keyboard on the local computer. OS X does not use X11 by default or this variable would have been set transparently. –  Thorbjørn Ravn Andersen Sep 8 '12 at 7:17
add comment

Your Answer

 
discard

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.