Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Building an Eclipse RCP application for Raspian aarch64 fails because of missing SWT classes(Missing SWT classes (ClassNotFoundException) but org.eclipse.swt.gtk.linux.aarch64.jar exists in directory)
Building an Eclipse RCP application for Raspian aarch64 fails because of missing SWT classes [message #1836332] Tue, 29 December 2020 10:41 Go to next message
Eclipse UserFriend
Hi,
I tried to create an aarch64 build of our Eclipse RCP application (which is not yet based on Eclipse e4).
The windows and linux build works as a charme!
I added to following environment to our parent target-platform-configuration:

<environment>
    <os>linux</os>
    <ws>gtk</ws>
    <arch>aarch64</arch>
</environment>


The build runs successfully and creates a nice zip file:
de.alamos.monitor-linux.gtk.aarch64.zip


I have the latest raspian with 64bit support:
Linux raspberrypi 5.10.2-v8+ #1385 SMP PREEMPT Wed Dec 23 12:00:51 GMT 2020 aarch64 GNU/Linux


After unzipping the zip and I made the start file executable:

sudo chmod +x start


Now I tried to start the application:

pi@raspberrypi:~/Downloads/am4/de.alamos.monitor-linux.gtk.aarch64 $ ./start 
bash: ./start: Datei oder Verzeichnis nicht gefunden


Unfortunately, there is an error which says, that the file or directory could not be found.
Next, I tried to start the launcher directly:

java -jar plugins/org.eclipse.equinox.launcher_1.6.0.v20200915-1508.jar


After a couple of seconds, the start fails and generates a nice error file (see attached file).

The error is obvious (or not?):
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError cannot be found by org.eclipse.ui.workbench_3.122.0.v20201122-1345


The weird thing ist, that actually there is a swt aarch64 jar in my plugins directory:
/home/pi/Downloads/am4/de.alamos.monitor-linux.gtk.aarch64/plugins/org.eclipse.swt.gtk.linux.aarch64_3.115.100.v20201202-1103.jar


Am I missing something?
Do you have any idea, why the application wont start?

I attached the target file definition.

Thanks for your help!!
Simon
Re: Building an Eclipse RCP application for Raspian aarch64 fails because of missing SWT classes [message #1849334 is a reply to message #1836332] Wed, 12 January 2022 22:09 Go to previous messageGo to next message
Eclipse UserFriend
Yes, this is not how you start Eclipse. For inspiration take a look at the following file: https://github.com/wimjongman/pipolos/blob/master/com.weltevree.pipolos.feature/rootfiles/pipolos.sh
Re: Building an Eclipse RCP application for Raspian aarch64 fails because of missing SWT classes [message #1849335 is a reply to message #1849334] Wed, 12 January 2022 22:12 Go to previous message
Eclipse UserFriend
the gist is this:

#!/bin/bash
cp=$(find -name "org.eclipse.equinox.launcher_*.jar" | sort | tail -1);
javaOpts="-Dwhat=ever"
opts="-consolelog -console"
java ${javaOpts} -cp ${cp} org.eclipse.equinox.launcher.Main ${opts}
Previous Topic:Fixed Window Size depending on perspective
Next Topic:HandlerUtil for isEnabled of handler
Goto Forum:
  


Current Time: Mon Feb 10 01:35:28 GMT 2025

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

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

Back to the top