Why do I get the error “java.lang.UnsatisfiedLinkError: libXm.so.2: cannot open shared object file: No such file or directory.”?

0
Posted

Why do I get the error “java.lang.UnsatisfiedLinkError: libXm.so.2: cannot open shared object file: No such file or directory.”?

0

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