Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory(Something changed in my SunOS environment and Eclipse will no longer start)
Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1591944] Thu, 29 January 2015 20:58 Go to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I was able to run Eclipse (slowly) on a SunOS server a couple years ago. Now that I need to do that again, I find that I cannot launch Eclipse. I get an error with a missing library file:

libgtk-x11-2.0.so.0

HERE IS MY LAUNCH COMMAND FOR ECLIPSE:

nohup $HOME/eclipse/eclipse -vm /home/rp3138/java/jdk1.6.0_04/bin/java &


Here is my latest error file:


DEV-TEST: </home/rp3138 [1165]>
rp3138@fstst05: cat /home/rp3138/eclipse/configuration/1422563459114.log
!SESSION 2015-01-29 12:30:58.109 -----------------------------------------------
eclipse.buildId=M20130131-0800
java.version=1.6.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=solaris, ARCH=sparc, WS=gtk, NL=en
Command-line arguments: -os solaris -ws gtk -arch sparc

!ENTRY org.eclipse.osgi 4 0 2015-01-29 12:31:04.010
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/rp3138/eclipse/configuration/org.eclipse.osgi/bundles/167/1/.cp/libswt-pi-gtk-3836.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory
no swt-pi-gtk in java.library.path
/home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk-3836.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory
/home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk-3836.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:133)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


Here is my server information:

DEV-TEST: </home/rp3138 [1162]>
rp3138@fstst05: uname -a
SunOS fstst05 5.10 Generic_150400-11 sun4u sparc SUNW,Sun-Fire-V890


I assume I need a copy of libgtk-x11-2.0.so.0. If so, where do I get it? Where would I place it?

Any pointers would be appreciated.
Steve Price



Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1593173 is a reply to message #1591944] Fri, 30 January 2015 13:13 Go to previous messageGo to next message
Hamed Mohammadi is currently offline Hamed MohammadiFriend
Messages: 50
Registered: May 2010
Location: Shiraz - Iran
Member

You can see full list of SWT packages here:

http://download.eclipse.org/eclipse/downloads/drops4/R-4.4-201406061215/#SWT
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1593768 is a reply to message #1593173] Fri, 30 January 2015 21:57 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I have installed the latest Eclipse for Solaris 10 SPARC from this *zip: eclipse-SDK-4.4-solaris-gtk.zip

I have unzipped swt-4.4-gtk-solaris-sparc.zip into my $HOME/lib:

-rw-r--r-- 1 rp3138 dev 2285019 Jun 6 2014 swt-debug.jar
-rw-r--r-- 1 rp3138 dev 1675042 Jun 6 2014 swt.jar
-rw-r--r-- 1 rp3138 dev 2020558 Jun 6 2014 src.zip
drwxr-xr-x 2 rp3138 dev 96 Jun 6 2014 about_files
-rw-r--r-- 1 rp3138 dev 11105 Jun 6 2014 about.html
DEV-TEST: </home/rp3138/lib [1526]>

I also put them into /home/rp3138/.swt/lib/solaris/sparc when my first test of the new Eclipse failed:

DEV-TEST: </home/rp3138/.swt/lib/solaris/sparc [1531]>
rp3138@fstst05: ls -ltr
total 12696
-rw-r--r-- 1 rp3138 dev 2285019 Jun 6 2014 swt-debug.jar
-rw-r--r-- 1 rp3138 dev 1675042 Jun 6 2014 swt.jar
-rw-r--r-- 1 rp3138 dev 2020558 Jun 6 2014 src.zip
drwxr-xr-x 2 rp3138 dev 96 Jun 6 2014 about_files
-rw-r--r-- 1 rp3138 dev 11105 Jun 6 2014 about.html
-rwxr-xr-x 1 rp3138 dev 506536 Jan 30 13:34 libswt-pi-gtk-4427.so
DEV-TEST: </home/rp3138/.swt/lib/solaris/sparc [1532]>
rp3138@fstst05:


I found GTK on my system here:

DEV-TEST: </usr/lib [1534]>
rp3138@fstst05: ls -ld gtk*
drwxr-xr-x 3 root other 512 Aug 28 2013 gtk-2.0


So, I set up LD_ like this:
DEV-TEST: </home/rp3138/lib [1526]>
rp3138@fstst05: env | grep LD_
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/local/lib/perl5:/usr/java/lib:/usr/local/gcc/lib:/usr/local/perl/lib:/usr/lib/gtk-2.0:/home/rp3138/lib

That includes the GTK 2.0 and swt.jar.

I run Eclipse like this:

DEV-TEST: </usr/lib [1535]>
rp3138@fstst05: alias eclipse
eclipse='cd; nohup /home/rp3138/eclipse/eclipse -vm /home/rp3138/java/jdk1.6.0_04/bin/java &'

And I end up in the same error situation:

DEV-TEST: </home/rp3138 [1540]>
rp3138@fstst05: cat nohup.out
Eclipse:
An error has occurred. See the log file
/home/rp3138/eclipse.4.4/configuration/1422654483686.log.
DEV-TEST: </home/rp3138 [1541]>
rp3138@fstst05: cat /home/rp3138/eclipse.4.4/configuration/1422654483686.log
!SESSION 2015-01-30 13:48:02.954 -----------------------------------------------
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.6.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=solaris, ARCH=sparc, WS=gtk, NL=en
Command-line arguments: -os solaris -ws gtk -arch sparc

!ENTRY org.eclipse.osgi 4 0 2015-01-30 13:48:08.335
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/rp3138/eclipse.4.4/configuration/org.eclipse.osgi/196/0/.cp/libswt-pi-gtk-4427.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory
no swt-pi-gtk in java.library.path
/home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk-4427.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory
Can't load library: /home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:38)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:135)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)


I feel like I am close to success here, but I cannot figure out what the winning move would be.

Any suggestions?
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1602948 is a reply to message #1593768] Thu, 05 February 2015 22:49 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I just added -vm instructions in eclipse.ini to match my -vm value I use when I start eclipse:

DEV-TEST: </home/rp3138 [1088]>
rp3138@fstst06: alias eclipse
eclipse='cd; nohup /home/rp3138/eclipse/eclipse -vm /home/rp3138/java/jdk1.6.0_04/bin/java &'


Here is what I have in $HOME/eclipse/eclipse.ini:

DEV-TEST: </home/rp3138 [1089]>
rp3138@fstst06: cat eclipse/eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.solaris.sparc_1.1.200.v20140603-1326
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
/home/rp3138/java/jdk1.6.0_04/bin/java
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m
DEV-TEST: </home/rp3138 [1090]>
rp3138@fstst06:


Now I still get exactly the same error when I start Eclipse:

DEV-TEST: </home/rp3138 [1087]>
rp3138@fstst06: cat /home/rp3138/eclipse.4.4/configuration/1423175855268.log
!SESSION 2015-02-05 14:37:34.532 -----------------------------------------------
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.6.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=solaris, ARCH=sparc, WS=gtk, NL=en
Command-line arguments: -os solaris -ws gtk -arch sparc

!ENTRY org.eclipse.osgi 4 0 2015-02-05 14:37:40.074
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/rp3138/eclipse.4.4/configuration/org.eclipse.osgi/196/0/.cp/libswt-pi-gtk-4427.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory
no swt-pi-gtk in java.library.path
/home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk-4427.so: ld.so.1: java: fatal: libgtk-x11-2.0.so.0: open failed: No such file or directory
Can't load library: /home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:38)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:135)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)



Where is libswt-pi-gtk.so?
This error is correct:
Can't load library: /home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk.so

Behold:
DEV-TEST: </home/rp3138 [1090]>
rp3138@fstst06: ls -l /home/rp3138/.swt/lib/solaris/sparc/
total 12696
-rw-r--r-- 1 rp3138 dev 11105 Jun 6 2014 about.html
drwxr-xr-x 2 rp3138 dev 96 Jun 6 2014 about_files
-rwxr-xr-x 1 rp3138 dev 506536 Jan 30 13:34 libswt-pi-gtk-4427.so
-rw-r--r-- 1 rp3138 dev 2020558 Jun 6 2014 src.zip
-rw-r--r-- 1 rp3138 dev 2285019 Jun 6 2014 swt-debug.jar
-rw-r--r-- 1 rp3138 dev 1675042 Jun 6 2014 swt.jar

Notice there is no file libswt-pi-gtk.so. Nor is it in swt.jar.

Where is libgtk-x11-2.0.so.0? That file is also NOT in swt.jar.

DEV-TEST: </home/rp3138/.swt/lib/solaris/sparc [1092]>
rp3138@fstst06: jar -tvf swt.jar | grep -i x11


Has anyone gotten Eclipse to run in SunOS recently?
Does anyone have any suggestions for how I can make this work?
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1619708 is a reply to message #1593173] Mon, 16 February 2015 19:40 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I had a System Administrator install /usr/local/lib/libgtk-x11-2.0.so.0. I validated that this is mentioned in my $LD_LIBRARY_PATH. But I still cannot get Eclipse to launch. Here is what I do and the error I get now:

DEV-TEST: </home/rp3138 [1035]>
rp3138@fstst06: alias eclipse
eclipse='cd; nohup /home/rp3138/eclipse/eclipse -vm /home/rp3138/java/jdk1.6.0_04/bin/java &'
DEV-TEST: </home/rp3138 [1036]>
rp3138@fstst06: cat view /home/rp3138/eclipse.4.4/configuration/1424106329073.log
cat: cannot open view
!SESSION 2015-02-16 09:05:28.137 -----------------------------------------------
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.6.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=solaris, ARCH=sparc, WS=gtk, NL=en
Command-line arguments: -os solaris -ws gtk -arch sparc

!ENTRY org.eclipse.osgi 4 0 2015-02-16 09:05:35.803
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/rp3138/eclipse.4.4/configuration/org.eclipse.osgi/196/0/.cp/libswt-pi-gtk-4427.so: ld.so.1: java: fatal: libgthread-2.0.so.0: open failed: No such file or directory
no swt-pi-gtk in java.library.path
/home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk-4427.so: ld.so.1: java: fatal: libgthread-2.0.so.0: open failed: No such file or directory
Can't load library: /home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:38)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:135)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
DEV-TEST: </home/rp3138 [1037]>
rp3138@fstst06: env | grep LD
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/local/lib/perl5:/usr/java/lib:/usr/local/gcc/lib:/usr/local/perl/lib
DEV-TEST: </home/rp3138 [1038]>
rp3138@fstst06: ls /usr/local/lib/*x11*
/usr/local/lib/libgtk-x11-2.0.so.0
==================================================

Can anyone suggest how I can get this working?
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1725541 is a reply to message #1619708] Fri, 04 March 2016 09:27 Go to previous messageGo to next message
pavan kate is currently offline pavan kateFriend
Messages: 4
Registered: October 2015
Junior Member
One short answer:
This will solve your solaris equation

I am facing similar problem in HPux machine.
Hope this helps:
http://rpmfind(dot)net/linux/rpm2html/search.php?query=libswt-pi-gtk-4430.so

Replace the dot above, eclipse forum not allowing to paste links

Just dearch for rpms and look for usr/lib folder, copy all the contents of .so and .so.0 files, to your LD_LIBRARY_PATH location

Cheers
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1725615 is a reply to message #1725541] Sat, 05 March 2016 00:17 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I found an *rpm package for Solaris, but I don't think my SunOS can handle *rpm files which are Linux oriented. Is there some site that provides this in *tar.gz or other Unix format?
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1725619 is a reply to message #1725615] Sat, 05 March 2016 06:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

You can use the rpm2cpio command, on a Linux system, to pull out the contents as a cpio archive. From there you can extract the actual files or repackage them as you see fit.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1725829 is a reply to message #1725619] Mon, 07 March 2016 23:42 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
A Unix Linux SysAdm extracted the files for me as a tar file which I extracted in my test environment and edited LD_LIBRARY_PATH. I got some other errors, so I am downloading the latest Eclipse for Solaris SPARC and starting over again.
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1726000 is a reply to message #1725619] Tue, 08 March 2016 22:31 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I was able to use the GimpX11 lib files, but I am still not able to start Eclipse on my SunOS Sparc test machine.

I am using
- eclipse.buildId=4.4.2.M20150204-1700

- Java 1.7.0
DEV-TEST: </home/rp3138 [1195]>
rp3138@fstst05: /home/rp3138/java/jdk7/bin/java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)

- SunOS
DEV-TEST: </home/rp3138 [1196]>
rp3138@fstst05: uname -a
SunOS fstst05 5.10 Generic_150400-27 sun4u sparc SUNW,Sun-Fire-V890


Calling Eclipse:

DEV-TEST: </home/rp3138 [1191]>
rp3138@fstst05: eclipse/eclipse -vm $JAVA_HOME/java
Eclipse:
An error has occurred. See the log file
/home/rp3138/eclipse/configuration/1457475590501.log.


Viewing the error log:

DEV-TEST: </home/rp3138 [1186]>
rp3138@fstst05: cat /home/rp3138/eclipse/configuration/1457475590501.log
!SESSION 2016-03-08 14:19:49.556 -----------------------------------------------
eclipse.buildId=4.4.2.M20150204-1700
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=solaris, ARCH=sparc, WS=gtk, NL=en
Command-line arguments: -os solaris -ws gtk -arch sparc

!ENTRY org.eclipse.osgi 4 0 2016-03-08 14:20:05.255
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/rp3138/eclipse/configuration/org.eclipse.osgi/196/0/.cp/libswt-pi-gtk-4430.so: ld.so.1: java: fatal: libgthread-2.0.so.0: open failed: No such file or directory
no swt-pi-gtk in java.library.path
/home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk-4430.so: ld.so.1: java: fatal: libgthread-2.0.so.0: open failed: No such file or directory
Can't load library: /home/rp3138/.swt/lib/solaris/sparc/libswt-pi-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:39)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:135)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)


Examining the env values:

DEV-TEST: </home/rp3138 [1180]>
rp3138@fstst05: echo $JAVA_HOME
/home/rp3138/java/jdk7/bin
DEV-TEST: </home/rp3138 [1181]>
rp3138@fstst05: env | grep LD_
LD_LIBRARY_PATH=/home/rp3138/java/jdk7/lib:/lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/local/lib/perl5:/usr/java/lib:/usr/local/gcc/lib:/usr/local/perl/lib:/home/rp3138/GimpX11/lib:/usr/local/opt/cmapp/cm/svn/opt/WANdisco/lib
DEV-TEST: </home/rp3138 [1182]>
rp3138@fstst05: find . -name libgthread-2.0.so.0
DEV-TEST: </home/rp3138 [1183]>
rp3138@fstst05: ls -lR GimpX11/lib
GimpX11/lib:
total 9284
lrwxrwxrwx 1 rp3138 dev 26 Mar 8 13:28 libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.1000.3
-rwxr-xr-x 1 rp3138 dev 622284 Mar 7 08:01 libgdk-x11-2.0.so.0.1000.3
lrwxrwxrwx 1 rp3138 dev 26 Mar 8 13:28 libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.1000.3
-rwxr-xr-x 1 rp3138 dev 4130268 Mar 7 08:01 libgtk-x11-2.0.so.0.1000.3
DEV-TEST: </home/rp3138 [1184]>
rp3138@fstst05:




Sincerely,
Steve Price
Professional Technical Architect for AT&T

Tech Mahindra (Americas) Inc.

P: 925.978.4322
rp3138@att.com

Send #X before you drive to pause the conversation until you arrive.
Take the pledge... It Can Wait.


Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1733863 is a reply to message #1726000] Wed, 01 June 2016 14:17 Go to previous messageGo to next message
Andrew Glynn is currently offline Andrew GlynnFriend
Messages: 1
Registered: June 2016
Junior Member
The bundles for all platform swt libs are here (replace the dot with an actual period):

https://eclipse(dot)googlesource.com/platform/eclipse.platform.swt.binaries/+/v4430

cheers
Andrew
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1734299 is a reply to message #1733863] Mon, 06 June 2016 22:40 Go to previous messageGo to next message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
Using Opera browser on SunOS I get this error:

Unable to complete secure transaction

You tried to access the address https://eclipse.googlesource.com/platform/eclipse.platform.swt.binaries/+/v4430, which is currently unavailable. Please make sure that the Web address (URL) is correctly spelled and punctuated, then try reloading the page.

Secure connection: fatal error (40)

https://eclipse.googlesource.com/platform/eclipse.platform.swt.binaries/+/v4430

Failed to connect to server. The reason may be that the encryption methods supported by the server are not enabled in the security preferences.
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1734377 is a reply to message #1734299] Tue, 07 June 2016 16:37 Go to previous message
Steve Price is currently offline Steve PriceFriend
Messages: 10
Registered: June 2012
Junior Member
I used a different browser and network and was able to get the libraries. I will now move them to Solaris server and install.
Previous Topic:Deploy eclipse using SCCM 2012
Next Topic:Gradle Buildship plugin error on import project
Goto Forum:
  


Current Time: Thu Apr 25 15:43:31 GMT 2024

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

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

Back to the top