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.
Note
Note
QuickBooks Online apps must use TLS 1.2 or higher to align with industry best practices for security and data integrity.
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. |
The following are two ways to integrate the Java SDK into your developer environment:
You can easily install the Java SDK into any Java development environment. To install the Java SDK:
JAVA_HOME
variable to point to the directory where the JDK is located and add JAVA_HOME/bin
to the PATH
variable.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> |
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 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:
JAVA_HOME
variable to point to the directory where the JDK is located and add JAVA_HOME/bin
to the PATH
variable.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> |
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, you will need to configure the SDK. See Quick start for specific instructions on configuration and the development process.