Manual install

Updated

Install the Signaling SDK for your platform, using a package manager or a downloaded package.

To install the Signaling SDK for Linux Java using Maven:

  1. Create a file named pom.xml in RTM_quickstart with the following content:

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
    
        <groupId>io.agora</groupId>
        <artifactId>RTM-Java-Demo</artifactId>
        <version>1.0-SNAPSHOT</version>
    
        <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <maven.compiler.source>1.8</maven.compiler.source>
            <maven.compiler.target>1.8</maven.compiler.target>
        </properties>
    
        <dependencies>
            <dependency>
                <groupId>io.agora</groupId>
                <artifactId>rtm-java-aarch64</artifactId>
                <version>x.y.z</version>
            </dependency>
        </dependencies>
    
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>3.2.0</version>
                    <executions>
                        <!-- Attach the shade into the package phase -->
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>shade</goal>
                            </goals>
                            <configuration>
                                <transformers>
                                    <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                        <mainClass>io.agora.RtmJavaDemo</mainClass>
                                    </transformer>
                                </transformers>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </project>

    Replace x.y.z with the specific SDK version number, such as 2.3.0. To get the latest version number, check the Release notes.

    The artifactId is architecture-specific. Use rtm-java-aarch64 for aarch64 (arm64) devices, or rtm-java-x86_64 for x86-64 devices.

  2. Maven doesn't distribute the native libraries the SDK depends on, so download the SDK package separately, unzip it, and copy the *.so files to the lib folder.