# Integrate the SDK (/en/realtime-media/rtc-server-sdk/quickstart/linux-java)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

This article shows how to create a simple Maven project, integrate the Server Gateway Java SDK, and run the app.

## Set up the development environment

Make sure your server meets the following requirements.

### Hardware environment

**Operating system**

* Ubuntu 18.04 or higher
* CentOS: 7.0 or higher

**CPU architecture**

* arm64
* x86-64

If you need to run the SDK on other architectures, [submit a ticket](https://agora-ticket.agora.io/) to contact technical support.

**Performance**

* CPU：8-core, 1.8 GHz or higher.
* 2 GB of RAM or higher. 4 GB or higher is recommended.

**Network**

* The server is connected to the internet and has an internet IP.
* The server can access `*.agora.io` and `*.agoralab.co`.

### Software environment

* [Apache Maven](https://maven.apache.org/download.cgi) or other build tools. This page uses Apache Maven as an example.
* JDK 8

## Get your app ID and an RTC token

See [Account](/en/introduction/account) to learn how to get your Agora App ID and a temporary RTC token.

## Create a Maven project

See [Maven in Five Minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html) to create a Maven project.

```bash
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
```

## Integrate the SDK

1. Navigate to the `my-app` folder.

   ```bash
   cd my-app
   ```

2. Open `pom.xml` and replace the content with the following:

   ```xml
   <?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>org.example</groupId>
   <artifactId>agora-rtc-linux-java</artifactId>
   <version>1.0-SNAPSHOT</version>

   <dependencies>
       <dependency>
       <groupId>io.agora.rtc</groupId>
       <artifactId>linux-sdk</artifactId>
       <version>3.7.200.21</version>
       </dependency>
   </dependencies>

   <properties>
       <maven.compiler.source>1.8</maven.compiler.source>
       <maven.compiler.target>1.8</maven.compiler.target>
   </properties>

   <build>
       <plugins>
       <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-shade-plugin</artifactId>
           <version>2.3</version>
           <configuration>
           <createDependencyReducedPom>true</createDependencyReducedPom>
           </configuration>
           <executions>
           <execution>
               <phase>package</phase>
               <goals>
               <goal>shade</goal>
               </goals>
               <configuration>
               <transformers>
                   <transformer
                       implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                   <mainClass>App</mainClass>
                   </transformer>
               </transformers>
               </configuration>
           </execution>
           </executions>
       </plugin>
       </plugins>
   </build>
   </project>
   ```

<CalloutContainer type="info">
  <CalloutDescription>
    Refer to [mvnrepository](https://mvnrepository.com/artifact/io.agora.rtc/linux-sdk) for other integration methods, such as Gradle.
  </CalloutDescription>
</CalloutContainer>

    
  
      
  
      
  
