> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Java Server SDK Prerequisites

> Check the prerequisites before you integrate with Razorpay Java server-side SDK.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
</div>

<CardGroup cols={1}>
  <Card title="Java Changelog" href="/docs/payments/changelog#server-sdks">
    Discover new features, updates and deprecations related to the Razorpay Java SDK (since Jan 2024).
  </Card>
</CardGroup>

Install the Razorpay Java SDK and integrate it with your Java-based website to accept payments, initiate refunds and much more.

## Dependencies

* You must use Java v15 or higher. Know more about the [latest java versions](https://www.java.com/releases/).

* Import the following packages before your get started:

```json Import Package theme={null}
import org.json.JSONObject;
import com.razorpay.*;
```

## Installation

You can install Razorpay using Maven or Gradle.

<Tabs>
  <Tab title="Maven">
    1. Download  and install [Maven](https://maven.apache.org/download.cgi)  on your system.
    2. Download the [latest Source code](https://github.com/razorpay/razorpay-java/releases) zip file from the Releases section of GitHub.
    3. Unzip the file and add this dependency to the project object model (POM) of your project.

    <CodeGroup>
      ```java Java theme={null}
      <dependency>
      <groupId>com.razorpay</groupId>
      <artifactId>razorpay-java</artifactId>
      <version>x.y.z</version> //x.y.z = the version you want to install
      </dependency>
      ```
    </CodeGroup>
  </Tab>

  <Tab title="Gradle">
    1. [Download](https://gradle.org/releases) and [install](https://docs.gradle.org/current/userguide/installation.html) Gradle on your system.
    2. Download the [latest Source code](https://github.com/razorpay/razorpay-java/releases) zip file from the Releases section of GitHub.
    3. Unzip the file and add this dependency to the build file of the project:

    <CodeGroup>
      ```java Java theme={null}
      implementation 'com.razorpay:razorpay-java:x.y.z" //x.y.z = the version you want to install
      ```
    </CodeGroup>
  </Tab>
</Tabs>

<CardGroup cols={3}>
  <Card title="Payment Gateway" href="/docs/payments/server-integration/java/integration-steps">
    Integrate with Razorpay Payment Gateway.
  </Card>

  <Card title="API Sample Codes" href="https://github.com/razorpay/razorpay-java/tree/master/documents">
    Integrate using API sample codes.
  </Card>

  <Card title="Other Razorpay Products" href="/docs/payments/server-integration/java/integration-steps#integrate-with-other-razorpay-products">
    Integrate with other Razorpay products.
  </Card>
</CardGroup>

## Support

* **Queries**: If you have queries, [contact support](https://razorpay.com/support/).

* **Feature Request:** If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-java/issues/new).

### Related Information

[Address Verification System](/docs/payments/international-payments/address-verification-system)
