Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Run Unittests on Jenkins: Could not load SWT library
Run Unittests on Jenkins: Could not load SWT library [message #1827621] Tue, 19 May 2020 13:09
Thomas Kalbusch is currently offline Thomas KalbuschFriend
Messages: 1
Registered: May 2020
Junior Member

I have a RCP Application for Windows. I build my plugins with tycho.
I can execute my unittests in Eclipse without problems. I also configured maven-surefire-plugin to run the tests with maven verify.

The unittests are lying under a different path with a dependencie to the source plugin.

But when jenkins tries to run the tests, they fail. Here's the Stacktrace.

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-win32-4763 in java.library.path
no swt-win32 in java.library.path
Can't load library: /var/lib/jenkins/.swt/lib/linux/x86_64/
Can't load library: /var/lib/jenkins/.swt/lib/linux/x86_64/
at org.eclipse.swt.internal.Library.loadLibrary(
at org.eclipse.swt.internal.Library.loadLibrary(
at org.eclipse.swt.internal.C.<clinit>(
at org.eclipse.swt.widgets.Display.<clinit>(
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.swt.widgets.Display

What do I miss? Do I have to configure my plugins for Linux? How that works? Or do I have to change sth. inside Jenkins?
Previous Topic:Eclipse RCP Dynamic help customization with dynamic url
Next Topic:Problem while launching RCP application as using .product file.
Goto Forum:

Current Time: Sat May 25 23:45:14 GMT 2024

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

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

Back to the top