When trying to extract the Glassfish jar file with

java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux.jar

i get following error:

(.:31766): Gtk-WARNING **: cannot open display:

and extraction doesn't happen. It somehow assumes i'm on an real machine rather on a SSH shell. How can i solve this?

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

You can append -console to the command:

java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux.jar -console
link|improve this answer
THANKS (big thanks) - that did the trick. Why is java assuming i'm on an X11 machine? – Mannaz Apr 21 '10 at 9:22
Java isn't assuming, but the glassfish installer is assuming that. Can I pimp for an upvote? ;) – tronda Apr 21 '10 at 10:30
"Vote Up requires 15 reputation (click on this box to dismiss)" sorry bro – Mannaz Apr 21 '10 at 10:38
nope, doesnt give me any points – Mannaz Apr 21 '10 at 11:53
feedback

Can you use an ssh tunnel?

ssh -X my.host

You may also need to enable ssh forwarding in /etc/ssh/sshd_config

Another option might be just do unset DISPLAY and see if that works.

link|improve this answer
neither of this options worked for me. – Mannaz Apr 20 '10 at 13:31
feedback

Your Answer

 
or
required, but never shown

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