I am trying to install Glassfish on my new Amazon EC2 Linux instance.
The installation tells me to set the DISPLAY variable.
I determine my IP using http://www.whatismyip.com (e.g. 123.45.67.89)
I open X11 on my Mac and set the ip address on Linux (for example, export DISPLAY = 123.45.67.89)
But installing Glassfish throws an exception
java.lang.InternalError: Can't connect to X11 window server using '123.45.67.89' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) ...
Any ideas?
source share