Java and SAP Business One SDK DI API Tutorial (Part One)
This is the first of a series of tutorials, that will show you how to use DI API in your Java application.
Before we start, there are a few things you’ll need installing on your development machine:
Java Platform (JDK)
The latest, the better. Grab a copy from http://www.oracle.com/technetwork/java/javase/downloads/index.html
SAP Business One DI API
This package contains Java libraries that we will be using to connect to SAP server. If you have SAP Business One Client already installed on your PC, you should also have DI API. Go to C:\Program Files\SAP\SAP Business One DI API\JCO\LIB (64-bit installation) or C:\Program Files (x86)\SAP\SAP Business One DI API\JCO\LIB (32-bit installation) and check if you have the following files:
If you do, great! If you don’t have SAP Business One Client installed, you can just grab the DI API installer from Packages or Packages.x64 folder on SAP B1 installation media. Run the installer and when you get to the Setup Type, select Custom.
On the component selection screen, make sure that JCO is selected. This is the Java connector that we’ll need. Go through the rest of the wizard and finish the installation.
Integrated Development Environment
This is optional and entirely up to you, which IDE, if any, you’ll be using. For the purpose of this tutorial, I will be using Netbeans.
Go to Part Two