### Java Quickstart - Getting Started
Source: https://developers.taxjar.com/api/guides/java
Instructions on how to add the TaxJar Java client library to your project using Maven or Gradle.
```APIDOC
## Getting Started with TaxJar Java Client
This section guides you through adding the `taxjar-java` library to your project.
### Method
Installation via package managers.
### Parameters
None.
### Request Example
**Maven:**
```xml
com.taxjar
taxjar-java
1.0.0
```
**Gradle:**
```groovy
compile "com.taxjar:taxjar-java:1.0.0"
```
After adding the dependency, run `mvn install` or use your IDE to install the dependencies.
```
--------------------------------
### Java Quickstart - Sales Tax Calculations
Source: https://developers.taxjar.com/api/guides/java
Example of how to calculate sales tax for an order using the TaxJar Java client.
```APIDOC
## Calculating Sales Tax for an Order
This section shows how to calculate sales tax for an order by providing origin and destination addresses, amounts, and line items.
### Method
`client.taxForOrder(params)`
### Endpoint
N/A (Client-side method)
### Parameters
#### Request Body (Map)
* **from_country** (string) - Required - The country you are shipping from.
* **from_zip** (string) - Required - The zip code you are shipping from.
* **from_state** (string) - Required - The state you are shipping from.
* **from_city** (string) - Optional - The city you are shipping from.
* **to_country** (string) - Required - The country the order is being shipped to.
* **to_zip** (string) - Required - The zip code the order is being shipped to.
* **to_state** (string) - Required - The state the order is being shipped to.
* **to_city** (string) - Optional - The city the order is being shipped to.
* **amount** (double) - Required - Total amount of the order, excluding shipping.
* **shipping** (double) - Required - Total amount of shipping for the order.
* **line_items** (List