Why do I get the error “java.lang.UnsatisfiedLinkError: libXm.so.2: cannot open shared object file: No such file or directory.”?
On motif, the SWT library links against the open motif library libXm.so.2. On most platforms, the open motif library is installed and added to the library path by default. However, on some Linux platforms, either open motif is not installed or is not on the default library path, or lesstif is installed. Eclipse (and the standalone version of SWT) includes the libXm.so.2 library in the root of the Eclipse install. You need to either launch Eclipse from the installed directory or modify the LD_LIBRARY_PATH environment variable to include the location of libXm.so.2. Note -Djava.library.path is used by the VM to locate libraries for System.loadLibrary calls. However, it does not update the LD_LIBRARY_PATH and therefore does not help libraries locate other libraries.
Related Questions
- Why do I get the error message "ERROR while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory" when I try to start Gridgen on my OpenSuse machine?
- When running some applications there are errors similar to "libXm.so.2: cannot open shared object file: No such file or directory". Whats wrong?
- Why do I get the error "java.lang.UnsatisfiedLinkError: libXm.so.2: cannot open shared object file: No such file or directory."?