Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Installer fails with "Cannot open display" (Fresh install of Mars 4.5.1 fails with display error. Other X stuff works.)
Installer fails with "Cannot open display" [message #1722570] Fri, 05 February 2016 21:49 Go to next message
John Holmes is currently offline John HolmesFriend
Messages: 2
Registered: February 2016
Junior Member
Hello, Eclipse Newbie here. I am attempting to use the Mars Eclipse 4.5.1 Installer to install Eclipse on a 64-bit SUSE SLES 11 server with the X display going to my W7 PC. Each attempt at using the installer has resulted in an immediate "Cannot open display" error. Other X stuff works fine, so it seems to be the installer, not the environment.

I downloaded eclipse-inst-linux64.tar.gz from the Eclipse.org site and after unziping/taring it looks like the packages were built September 23, 2015.

X is working for other stuff, but not for the Eclipse installer. These work:
xlogo -display <ipAddress>:0 &
firefox --display <pcName>:0 &
(I've replace the real IP and pc name to keep from sending our security folks into a tizzy.)

These don't work:
eclipse-inst -display <ipAddress>:0 &
eclipse-inst -display <pcName>:0 &
eclipse-inst --display <ipAddress>:0 &
eclipse-inst --display <pcName>:0 &

Here is an example of one attempt:

# eclipse-inst -display <ipAddress>:0 &
[2] 3258
# Eclipse Installer: Cannot open display:
Eclipse Installer:
GTK+ Version Check
Eclipse Installer: Cannot open display:
Eclipse Installer:
An error has occurred. See the log file
/var/opt/teradata/pkgs/Eclipse/eclipse-installer/configuration/1454706087230.log.

[2]+ Exit 13 eclipse-inst -display <ipAddress>:0

Here is the top of the log file referenced above. I can list the whole thing if it would help.

!SESSION 2016-02-05 13:01:27.044 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -display <ipAddress>:0
Command-line arguments: -os linux -ws gtk -arch x86_64 -data @none -display <ipAddress>:0

!ENTRY org.eclipse.osgi 4 0 2016-02-05 13:01:28.355
!MESSAGE An error occurred while automatically activating bundle org.eclipse.oomph.setup.ui (132).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.oomph.setup.ui.SetupUIPlugin$Implementation.start() of bundle org.eclipse.oomph.setup.ui.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)

Thank you for your help,

John
Re: Installer fails with &quot;Cannot open display&quot; [message #1722583 is a reply to message #1722570] Sat, 06 February 2016 08:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30203
Registered: July 2009
Senior Member
John,

The only command line arguments that would do anything special would be
those documented for Eclipse itself:

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm

So even if the installer worked, the Eclipse installation will suffer
from the same problem. I did a bit of Googling. Perhaps this post helps:

http://www.thegeekstuff.com/2010/06/xhost-cannot-open-display/


On 05.02.2016 23:23, John Holmes wrote:
> Hello, Eclipse Newbie here. I am attempting to use the Mars Eclipse
> 4.5.1 Installer to install Eclipse on a 64-bit SUSE SLES 11 server
> with the X display going to my W7 PC. Each attempt at using the
> installer has resulted in an immediate "Cannot open display" error.
> Other X stuff works fine, so it seems to be the installer, not the
> environment.
>
> I downloaded eclipse-inst-linux64.tar.gz from the Eclipse.org site and
> after unziping/taring it looks like the packages were built September
> 23, 2015.
>
> X is working for other stuff, but not for the Eclipse installer. These
> work:
> xlogo -display <ipAddress>:0 &
> firefox --display <pcName>:0 &
> (I've replace the real IP and pc name to keep from sending our
> security folks into a tizzy.)
>
> These don't work:
> eclipse-inst -display <ipAddress>:0 &
> eclipse-inst -display <pcName>:0 &
> eclipse-inst --display <ipAddress>:0 &
> eclipse-inst --display <pcName>:0 &
>
> Here is an example of one attempt:
>
> # eclipse-inst -display <ipAddress>:0 &
> [2] 3258
> # Eclipse Installer: Cannot open display:
> Eclipse Installer:
> GTK+ Version Check
> Eclipse Installer: Cannot open display:
> Eclipse Installer:
> An error has occurred. See the log file
> /var/opt/teradata/pkgs/Eclipse/eclipse-installer/configuration/1454706087230.log.
>
>
> [2]+ Exit 13 eclipse-inst -display <ipAddress>:0
>
> Here is the top of the log file referenced above. I can list the
> whole thing if it would help.
>
> !SESSION 2016-02-05 13:01:27.044
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.7.0_55
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -display <ipAddress>:0
> Command-line arguments: -os linux -ws gtk -arch x86_64 -data @none
> -display <ipAddress>:0
>
> !ENTRY org.eclipse.osgi 4 0 2016-02-05 13:01:28.355
> !MESSAGE An error occurred while automatically activating bundle
> org.eclipse.oomph.setup.ui (132).
> !STACK 0
> org.osgi.framework.BundleException: Exception in
> org.eclipse.oomph.setup.ui.SetupUIPlugin$Implementation.start() of
> bundle org.eclipse.oomph.setup.ui.
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
>
> Thank you for your help,
>
> John
Re: Installer fails with &quot;Cannot open display&quot; [message #1722747 is a reply to message #1722583] Mon, 08 February 2016 19:20 Go to previous messageGo to next message
John Holmes is currently offline John HolmesFriend
Messages: 2
Registered: February 2016
Junior Member
Ed,

Thank you for the pointer. I looked at both the Eclipse and geek links you suggested. Together I may have figured something out. The Eclipse page showed that "display" is not a commonly used option. (Possibly not used at all? This would be a shortcoming since all the other X applications I work with take a display variable from the command line one way or another.) The geek link suggested setting the DISPLAY environment variable (and other stuff for a case where nothing is working with X.)

So I set the display variable and ran eclipse-inst without a display parameter. Eureka. I got a brief Oomph graphic flashed to my PC display, so it appears the display problem has been resolved.

Unfortunately there was a fatal JRE error and core dump immediately after the graphic. I'll look into that and open a different issue if I can't figure it out.

Thank you again for the help.

John
Re: Installer fails with "Cannot open display" [message #1722757 is a reply to message #1722570] Mon, 08 February 2016 21:17 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3413
Registered: July 2009
Senior Member

John Holmes wrote on Fri, 05 February 2016 16:49

[2]+ Exit 13 eclipse-inst -display <ipAddress>:0

Have a look through https://www.eclipse.org/forums/index.php/t/198527/ to make sure it's not a 32/64-bit mismatch.


Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Strange behaviour code still working
Next Topic:Installing plugins in closed network
Goto Forum:
  


Current Time: Sun Jun 16 07:24:14 GMT 2019

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top