Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] Using newly built SWT native libraries in Eclipse SDK unit tests

Hi,

I made some changes in the Windows SWT GDI+ native libraries, using
org.eclipse.swt.win32.win32.x86_64.source_3.115.100.v20201202-1103.jar
as starting point.

After the build, I have the new DLL files swt-gdip-win32-4940r23.dll and
swt-win32-4940r23.dll.

I copied them to C:\Users\StefanKowski\.swt\lib\win32\x86_64.

I also installed the Eclipse SDK (eclipse-SDK-4.18-win32-x86_64.zip).

When I run an example, e.g. ControlExample.java, the native libraries
cannot be found:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not
load SWT library. Reasons:
    no swt-win32-4942r22 in java.library.path:
C:\SDE\eclipse-jee-2020.12\eclipse\plugins...
    no swt-win32 in java.library.path:
C:\SDE\eclipse-jee-2020.12\eclipse\plugins....
    Can't load library:
C:\Users\StefanKowski\.swt\lib\win32\x86_64\swt-win32-4942r22.dll
    Can't load library:
C:\Users\StefanKowski\.swt\lib\win32\x86_64\swt-win32.dll

How can I change the version number to "440r23" for using my self-built
versions? It may work with renaming the files, but I think there is a
proper configuration

Regards
Stefan


Back to the top