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
Hello,

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.
bundles/de.plugin.a
test/de.plugin.a.unittest

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/libswt-win32-4763.so
Can't load library: /var/lib/jenkins/.swt/lib/linux/x86_64/libswt-win32.so
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.C.<clinit>(C.java:16)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:140)
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: Thu Oct 29 03:08:07 GMT 2020

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

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

Back to the top