Skip to main content

You are viewing Agora Docs forBetaproducts and features. Switch to Docs

Why do errors occur when compiling the Agora Signaling Linux Java SDK?

Problem

The following error occurs when compiling the Agora Signaling Linux Java SDK in Linux:


_1
Exception in thread “main” java.lang.UnsatisfiedLinkError:no agora_rtm_sdk in java.library.path

Reason

The agora_rtm_sdk library is not included in the environment variable.

Solution

You can use one of the following solutions to solve this problem. For either solution, you must replace <path> with the absolute path to the Signaling Linux Java SDK.

Update environment variables

Add the following line to any file that configures Linux environment variables, such as ~/.bashrc, ~/bash_profile, or /etc/profile.


_1
export LD_LIBRARY_PATH=<path>/agora/rtm/sdk:$LD_LIBRARY_PATH

Update Java command line arguments

You can launch Java with the Djava.library.path argument to add the absolute path to the Signaling Linux Java SDK to the library path:


_1
java -Djava.library.path=<path>/agora/rtm/sdk

vundefined