Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.