# 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 [#set-up-the-development-environment-1]

    Make sure your server meets the following requirements.

    ### Hardware environment [#hardware-environment-1]

    **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 [#software-environment-1]

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

    ## Get an Agora App ID and a Video SDK Temporary Token [#get-an-agora-app-id-and-a-video-sdk-temporary-token-1]

    See [Get Started with Agora](build/manage-agora-account.md) to learn how to get an **Agora App ID** and a **Video SDK temporary token**.

    ## Create a Maven project [#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 [#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>

    
  
      
  
      
  
