Install the java SDK

You can integrate the Java SDK into virtually any Java developer environment. This page describes how to integrate the SDK with Eclipse or any IDE that supports Java.

Requirements

Note

Note

QuickBooks Online apps must use TLS 1.2 or higher to align with industry best practices for security and data integrity.

JAR Files

The following JAR files are installed with the Java SDK:

ipp-v3-java-data.jar Contains all entities and entity dependencies used in data services operations.
ipp-v3-java-devkit.jar Core component that provides REST API support.
oauth2-platform-api.jar Contains the platform API code that supports OAuth 2.0 functions and the refresh/revoke API.
Installing the SDK

The following are two ways to integrate the Java SDK into your developer environment:

Simple Installation with any Java IDE

You can easily install the Java SDK into any Java development environment. To install the Java SDK:

  1. Set the JAVA_HOME variable to point to the directory where the JDK is located and add JAVA_HOME/bin to the PATH variable.
  2. For a Maven project, add the following dependencies to the pom.xml file:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<!-- data jar -->
<dependency>
   <groupId>com.intuit.quickbooks-online</groupId>
   <artifactId>ipp-v3-java-data</artifactId>
   <version>6.0.7</version>
</dependency>

<!-- devkit jar without dependencies-->
<dependency>
   <groupId>com.intuit.quickbooks-online</groupId>
   <artifactId>ipp-v3-java-devkit</artifactId>
   <version>6.0.7</version>
</dependency>
  1. For a Gradle project, add the following dependencies to the build.gradle file:

1
2
compile("com.intuit.quickbooks-online:ipp-v3-java-data:6.0.7")
compile("com.intuit.quickbooks-online:ipp-v3-java-devkit:6.0.7")
Eclipse installation

Eclipse installation allows you to take advantage of Buildship Gradle or Apache Maven integration for enhanced build and project management features. To install the Java SDK and the Gradle and Maven plugins:

  1. Set the JAVA_HOME variable to point to the directory where the JDK is located and add JAVA_HOME/bin to the PATH variable.
  2. Download Eclipse.
  3. Add either or both of the Gradle and Maven plugins:
    • To install the Gradle plugin: Go to Help > Eclipse Marketplace… In the Find text box of the Eclipse Marketplace window, type “buildship”, select Buildship Gradle Integration 1.0, and click Install.
    • To install Maven: Go to Help > Eclipse Marketplace… In the Find text box of the Eclipse Marketplace window, type “maven”, select Maven Integration for Eclipse, and click Install.
  4. Download the Java SDK and include it in your project’s dependency.
  5. For a Maven project, add the following dependencies to the pom.xml file:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<!-- data jar -->
<dependency>
  <groupId>com.intuit.quickbooks-online</groupId>
  <artifactId>ipp-v3-java-data</artifactId>
  <version>6.0.7</version>
</dependency>

<!-- devkit jar without dependencies-->
<dependency>
   <groupId>com.intuit.quickbooks-online</groupId>
   <artifactId>ipp-v3-java-devkit</artifactId>
   <version>6.0.7</version>
</dependency>

<!-- oauth jar without dependencies -->
<dependency>
  <groupId>com.intuit.quickbooks-online</groupId>
  <artifactId>oauth2-platform-api</artifactId>
  <version> 6.0.7 </version>
</dependency>
  1. For a Gradle project, add the following dependencies to the build.gradle file:

1
2
3
compile("com.intuit.quickbooks-online:ipp-v3-java-data:6.0.7")
compile (group: 'com.intuit.quickbooks-online', name: 'ipp-v3-java-devkit', version: '6.0.7', classifier: 'jar-with-dependencies')
compile (group: 'com.intuit.quickbooks-online', name: 'oauth2-platform-api', version: '6.0.7', classifier: 'jar-with-dependencies')
After installation

After installation, you will need to configure the SDK. See Quick start for specific instructions on configuration and the development process.