Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » [SOLVED] Eclipse doesn't launch. Could not load SWT library.(Launch issue)
[SOLVED] Eclipse doesn't launch. Could not load SWT library. [message #1836485] Tue, 05 January 2021 19:31 Go to next message
Filip Banák is currently offline Filip BanákFriend
Messages: 2
Registered: January 2021
Location: Slovakia
Junior Member
Eclipse IDE 2020-12
AdoptOpenJDK 15 with OpenJ9

It works with AdoptOpenJDK 11 with Openj9.
I do not mind running it with version 11 but why 15 doesn't work?

On Arch Linux:
jdk-openj9-bin from the AUR (version 15.0.1b9_openj9_0.23.0-1 as of now)

I downloaded the official Eclipse installer and installed the IDE, selecting my Java 15 runtime (The installer says Java 11+, so 15 should work.)

Installation went fine, but when I try to open any Eclipse IDE version (for Java or C++ or Rust), all of them refuse to start with the message
"An error has occurred see the log file ..."
tree ~/.swt
/home/filip/.swt
└── lib
   └── linux
      └── x86_64
         └── libswt-pi3-gtk-4940r23.so

I tried removing the .swt folder and installing libswt from official arch repositories, but that didn't help because it wants "libswt-pi4...", which isn't a part of that package.
Then I tried renaming the "libswt-pi3-gtk-4940r23.so" to "libswt-pi4-gtk-4940r23.so", but that also did not help.

It works when launching with the jdk11-openj9-bin, and jdk-openjdk(that is Java 14 as of now) packages from the AUR and official arch repositories respectively.

I did find very similar issues, but they were old or people were just missing the swt libraries or the Java search path was misconfigured or so, but no relation to Java 15.
There is no mention anywhere, as far as I could tell, that Java 15 isn't supported.

Thank You for help.

[Updated on: Wed, 06 January 2021 16:58]

Report message to a moderator

Re: Eclipse doesn't launch. Could not load SWT library. [message #1836520 is a reply to message #1836485] Wed, 06 January 2021 16:53 Go to previous message
Filip Banák is currently offline Filip BanákFriend
Messages: 2
Registered: January 2021
Location: Slovakia
Junior Member
It doesn't work with:
- AdoptOpenJDK 15 OpenJ9

It does work with:
- AdoptOpenJDK 15 Hotspot
- AdoptOpenJDK 14 OpenJ9
- AdoptOpenJDK 11 OpenJ9

[Updated on: Wed, 06 January 2021 18:57]

Report message to a moderator

Previous Topic:The Eclipse Installer 2020‑12 R now includes a JRE for macOS, Windows and Linux.
Next Topic:Eclipse Crashes on Opening (was working fine last week)
Goto Forum:
  


Current Time: Mon May 10 19:15:06 GMT 2021

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

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

Back to the top