1

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?

whlk
  • 125
  • 1
  • 6

2 Answers2

1

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.

LapTop006
  • 6,496
  • 20
  • 26
1

You can append -console to the command:

java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux.jar -console
tronda
  • 1,371
  • 1
  • 10
  • 13