PREVIOUS ARTICLE

Cannot Load 32-bit Swt Libraries On 64-bit Jvm May 2026

Example (pseudo-code for a Windows launcher):

You can force your 64-bit JVM to run as 32-bit using -d32 , but this is rarely supported . Most 64-bit JDKs do not include 32-bit runtime support. cannot load 32-bit swt libraries on 64-bit jvm

| Platform | Artifact ID (classifier part) | |---------------|----------------------------------------| | Windows 64-bit | org.eclipse.swt.win32.win32.x86_64 | | Linux 64-bit | org.eclipse.swt.gtk.linux.x86_64 | | macOS 64-bit | org.eclipse.swt.cocoa.macosx.x86_64 | | macOS ARM64 | org.eclipse.swt.cocoa.macosx.aarch64 | Example (pseudo-code for a Windows launcher): You can

Stick to Maven artifacts with platform classifiers, and you'll rarely see this error again. Have you run into other SWT native library issues? Share your war stories in the comments below. cannot load 32-bit swt libraries on 64-bit jvm

<dependency> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId> <version>3.125.0</version> </dependency> The classifier ( win32.win32.x86_64 ) encodes both OS and architecture. For other platforms:

NEXT ARTICLE

TUTORIALS Anaj Mandi Sales invoice in Fundcare Software

Example (pseudo-code for a Windows launcher):

You can force your 64-bit JVM to run as 32-bit using -d32 , but this is rarely supported . Most 64-bit JDKs do not include 32-bit runtime support.

| Platform | Artifact ID (classifier part) | |---------------|----------------------------------------| | Windows 64-bit | org.eclipse.swt.win32.win32.x86_64 | | Linux 64-bit | org.eclipse.swt.gtk.linux.x86_64 | | macOS 64-bit | org.eclipse.swt.cocoa.macosx.x86_64 | | macOS ARM64 | org.eclipse.swt.cocoa.macosx.aarch64 |

Stick to Maven artifacts with platform classifiers, and you'll rarely see this error again. Have you run into other SWT native library issues? Share your war stories in the comments below.

<dependency> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId> <version>3.125.0</version> </dependency> The classifier ( win32.win32.x86_64 ) encodes both OS and architecture. For other platforms: