Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse CPP 2018-12(Not able to launch eclipse)
Eclipse CPP 2018-12 [message #1801352] Thu, 17 January 2019 11:25 Go to next message
Niraj Pandey is currently offline Niraj PandeyFriend
Messages: 4
Registered: September 2016
Junior Member
I am getting the following error and not able to launch eclipse

!SESSION 2019-01-17 16:50:26.409 -----------------------------------------------
eclipse.buildId=4.10.0.I20181206-0815
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.osgi 4 0 2019-01-17 16:50:30.775
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-pi4-gtk-4922r32 in java.library.path
no swt-pi4-gtk in java.library.path
Can't load library: /home/niraj/.swt/lib/linux/x86_64/libswt-pi4-gtk-4922r32.so
Can't load library: /home/niraj/.swt/lib/linux/x86_64/libswt-pi4-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:329)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:241)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:88)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:209)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:155)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:151)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:741)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:163)
Re: Eclipse CPP 2018-12 [message #1801355 is a reply to message #1801352] Thu, 17 January 2019 11:49 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
The error message says that there is no SWT widget kit available on your installation.

You did not tell it, but are you attempting to run Eclipse on Raspberry Pi?
Eclipse may be too heavy for a Pi. There are lighter weight IDEs for Pi, e.g. Anjuta.


--

Tauno Voipio
Re: Eclipse CPP 2018-12 [message #1801360 is a reply to message #1801355] Thu, 17 January 2019 13:16 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

It's not a matter of being heavy, it's a matter of eclipse.org building for x86_64
processors, not the 64-bit ARM processor used in the Raspberry Pi 3 and
newer. The only moderately recent build for the Pi that I know of is part of the
Fedora ARM distributions.


_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Thu, 17 January 2019 13:17]

Report message to a moderator

Re: Eclipse CPP 2018-12 [message #1801365 is a reply to message #1801355] Thu, 17 January 2019 14:38 Go to previous messageGo to next message
Niraj Pandey is currently offline Niraj PandeyFriend
Messages: 4
Registered: September 2016
Junior Member
I am trying to run eclipse on redhat 6 x86_64 platform.

Thanks
Re: Eclipse CPP 2018-12 [message #1801369 is a reply to message #1801365] Thu, 17 January 2019 17:00 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Even a fully up to date EL6 installation might not be compatible. The current
release targets 7.5 and specific versions of gtk.

https://www.eclipse.org/projects/project-plan.php?planurl=http://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_10.xml#target_environments


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse CPP 2018-12 [message #1803570 is a reply to message #1801369] Mon, 04 March 2019 14:01 Go to previous messageGo to next message
Mikko Suonio is currently offline Mikko SuonioFriend
Messages: 2
Registered: March 2019
Junior Member
I am getting the same error on Ubuntu 18.04, which is listed as a release target.

Which Ubuntu packages are required (especially libswt-gtk) for Eclipse SDK 4.10 to work?

I cannot find libswt-pi4-gtk.so in Ubuntu 18.04 packages. It is not included in

eclipse-SDK-4.10-linux-gtk-x86_64/plugins/org.eclipse.swt.gtk.linux.x86_64_3.109.0.v20181204-1801.jar

Do I need to compile it by myself?
Re: Eclipse CPP 2018-12 [message #1803575 is a reply to message #1803570] Mon, 04 March 2019 18:40 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
If you installed Eclipse from the Ubuntu repository, just remove it using the package manager (apt, muon or whatever you're using).

This is what works on my 64 bit Kubuntu 18.04LTS:

If you do not have it yet, install the Oracle JDK using the instructions from <https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04>, from 'Installing the Oracle JDK'.

Get the Eclipse installer from the Eclipse download sites and use it to install Eclipse with CDT. You can use the 'Install New Software' to add other flavors to it.


--

Tauno Voipio
Re: Eclipse CPP 2018-12 [message #1803594 is a reply to message #1803575] Tue, 05 March 2019 08:50 Go to previous message
Mikko Suonio is currently offline Mikko SuonioFriend
Messages: 2
Registered: March 2019
Junior Member
Excellent, it works now!

I am using Eclipse 4.10 and Oracle JDK 8 installed from tar/zip-distribution.

The problem turned out to be a mixture of OpenJDK's installed from Ubuntu repos and using Nix package manager. I cleaned the JAVA_HOME and PATH pointing to these JDK's, and was able to start Eclipse 4.10 using OpenJDK (both from Ubuntu and Nix, with JAVA_HOME and PATH set correctly to either one).

Thanks!
Previous Topic:WindowsBuilder getClass exposure old version netbeans
Next Topic:The origin server did not find a current representation for the target resource or is not willing to
Goto Forum:
  


Current Time: Thu Mar 28 22:28:56 GMT 2024

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

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

Back to the top