Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load 32-bit DLL on Windows x86 #510

Open
peteschaefer opened this issue Feb 6, 2025 · 1 comment
Open

Can't load 32-bit DLL on Windows x86 #510

peteschaefer opened this issue Feb 6, 2025 · 1 comment
Assignees

Comments

@peteschaefer
Copy link

Runnning jbrsdk-21.0.6-windows-x86-b872.80 on Windows 11.
Since this JBR is built for x86, I expect that x86 shared libraries can be loaded via Classloader.loadLibrary().
Here's what happens:

java.lang.UnsatisfiedLinkError: C:\dev\jose\work\lib\Windows\libmysqld.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418)
at java.base/java.lang.Runtime.load0(Runtime.java:852)
at java.base/java.lang.System.load(System.java:2027)

This does work with Oracle JDK 1.8.0_202 (Windows x86).

@mkartashev
Copy link
Collaborator

Thank you for reporting the problem! x86 package for Windows incorrectly contains x64 binaries, which is why it refuses to load 32-bit DLL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants