It looks like the version of your SWT and the version of the Eclipse SDK you’re 
using don’t match.

SWT loads the native library based on an explicit version number, so that it 
can be clear that it matches up the two.

If you use the version of the Eclipse SDK and SWT from the same release, you 
should be OK. Otherwise you may find you have subtle differences between the 
two.

You can check out the version of SWT from the Git repo using the tag associated 
with your platform’s release to make sure you have the same number.

Trying to use a different numbered release by changing the number is unlikely 
to work and will fail in surprising ways.

Alex

> On 22 Feb 2021, at 20:55, Stefan Kowski <stefan.kow...@gmx.de> wrote:
> 
> 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
> _______________________________________________
> platform-dev mailing list
> platform-dev@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/platform-dev

_______________________________________________
platform-dev mailing list
platform-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/platform-dev

Reply via email to