Eclipse from a Toolbox

Was wondering if it is possible to run Eclipse Java from a toolbox. I created a toolbox, created access to Java 8, then run eclipse but it gives me an error. Any suggestions would be welcome.
Thanks and BR,

java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en
Framework arguments: -product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product

!ENTRY org.eclipse.osgi 4 0 2019-09-10 16:58:24.932
!MESSAGE Application error
java.lang.UnsatisfiedLinkError: org.eclipse.swt.internal.gtk.OS._cachejvmptr()V
at org.eclipse.swt.internal.gtk.OS._cachejvmptr(Native Method)
at org.eclipse.swt.internal.gtk.OS.cachejvmptr(
at org.eclipse.swt.internal.gtk.OS.(
at org.eclipse.swt.internal.Converter.wcsToMbcs(
at org.eclipse.swt.internal.Converter.wcsToMbcs(
at org.eclipse.swt.widgets.Display.(
at org.eclipse.ui.internal.Workbench.createDisplay(
at org.eclipse.ui.PlatformUI.createDisplay(
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Hi @ralphkw1,

Did you install Eclipse from the command line or software center?

Installing Eclipse

Fedora SilverBlue Toolbox Docs

Side note: if your end goal is just to have Eclipse working, there are unofficial Flatpaks available:

No install, just unzip into a local directory.

I usually have multiple instances of Eclipse with different configurations for each language or embedded target. I thought the concept of a container toolbox would be a natural. So flatpack install was less interesting.

1 Like

Okay, there’s a possibility your missing some build dependencies. I would try running the command below to ensure dependencies for eclipse are installed.

$ sudo dnf builddep eclipse

Thanks! This worked, not to sound ungrateful, :slight_smile: but WOW!

Transaction Summary

Install 529 Packages
Upgrade 8 Packages

Total download size: 546 M

Since I really don’t want to actually build eclipse I’d really like to figure out the minimum required to just run eclipse.
Thanks and BR,

1 Like

After some trial and error, all I needed additionally to run eclipse was to dnf install gtk3 and librsvg2.

1 Like

Just in case anyone else wants to do this, here is a script for creating a toolbox to run Eclipse IDE. I place the decompressed Oracle Java JDK in my local ~/bin/ as well as the eclipse download. I have a script to set up java. Seems to work well so far.

echo off
set -eux


toolbox rm --force $NAME || true
toolbox create $RELEASE --container $NAME

toolbox run -c “$NAME” sh -exec ’
# Place java into a system accessible directory and add to environment.
sudo cp ~/bin/ /etc/profile.d/
sudo mkdir /usr/local/java
sudo cp -avr ~/bin/java/jdk1.8.0_221/ /usr/local/java/

# Add eclipse runtime dependencies.
sudo dnf install gtk3 -y
sudo dnf install librsvg2 -y

sudo dnf clean packages

echo “to use run: toolbox enter --container $NAME”
# /etc/profile.d/ - JDK initialization script. Exports environment variables for JDK.

export JAVA_HOME
export PATH