Why do I get the error “java.lang.UnsatisfiedLinkError: no swt-win32-2034 in java.library.path.”?
You need to place the SWT JNI libraries that allow Java to use the native widgets in a place where the Java Virtual Machine will find them. The SWT JNI libraries are included in the eclipse download. The location of the libraries depends on the operating system and windowing system of interest. • Windows: • Eclipse 1.0 – {install-dir}\eclipse\plugins\org.eclipse.swt\ws\win32 • Eclipse 2.0 – {install-dir}\eclipse\plugins\org.eclipse.swt.win32_2.0.0\os\win32\x86 • Linux Motif: • Eclipse 1.0 – {install-dir}/eclipse/plugins/org.eclipse.swt/ws/motif • Eclipse 2.0 – {install-dir}/eclipse/plugins/org.eclipse.swt.WS_2.0.0/os/linux/x86 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 contain
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."?