Run Unittests on Jenkins: Could not load SWT library [message #1827621] |
Tue, 19 May 2020 13:09 |
Thomas Kalbusch 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?
|
|
|
Powered by
FUDForum. Page generated in 0.04778 seconds