Why do I get the error “java.lang.UnsatisfiedLinkError: no swt-win32-3232 in java.library.path.”?
The SWT JNI libraries must be found at runtime. As of Eclipse/SWT 3.3 this will happen automatically if the platform-specific SWT jar is on the java classpath. For older Eclipse/SWT versions you need to place the SWT JNI libraries in a place where the Java Virtual Machine will find them. The SWT JNI libraries are included in the SWT download. A Java application can be informed of the location of the libraries in several ways: • Set the library path in the VM launch arguments. In the Launch Configuration Dialog of eclipse select the Arguments page, and in the VM arguments field enter: -Djava.library.path={runtime-library-path} Where the runtime-library-path is the absolute path to the directory containing the native code library (see above). This solution means that the SWT libraries have to be manually added to every project that uses SWT. • Set the library location in an environment variable. For Windows this is done by editing the PATH environment variable to include the above mentio
Related Questions
- Why does my agent log have the error "java.lang.UnsatisfiedLinkError: Unable to load library augeas: libaugeas.so: cannot open shared object file: No such file or directory"?
- Why do I get the error "java.lang.UnsatisfiedLinkError: no swt-win32-2034 in java.library.path."?
- Why do I get the error "java.lang.UnsatisfiedLinkError: no swt-win32-3232 in java.library.path."?