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:
-
Create a file named
pom.xmlinRTM_quickstartwith 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.zwith the specific SDK version number, such as2.3.0. To get the latest version number, check the Release notes.The
artifactIdis architecture-specific. Usertm-java-aarch64for aarch64 (arm64) devices, orrtm-java-x86_64for x86-64 devices. -
Maven doesn't distribute the native libraries the SDK depends on, so download the SDK package separately, unzip it, and copy the
*.sofiles to thelibfolder.
