2020 Jan 13 11:09 AM
Context:
We are developing a JAVA JDK 13 + SPRING API project.
We need to connect to SAP B1 DI-API 64 Bits.
We installed the 64 bits version of DI-API and referenced the file sboapi.jar provided in the following directory:
C:\Program Files\SAP\SAP Business One DI API\JCO\LIB\sboapi.jar
Problem:
On connecting to the DI-API we get the following message:
C:\Program Files (x86)\SAP\SAP Business One DI API\JCO\LIB\sbojni.dll: Can't load IA 32-bit .dll on a AMD 64- bit platform
We tried to uninstall the 32 bits version of DI-API, since we had both of them installed. And after that we get the following error:
"Could not initialize class com.sap.smb.sbo.wrapper. activeX.ActiveXComponent"
Conclusion:
I think both sboapi.jar files provided in 32 bits and 64 bits versions of DI-API use the 32 bits version.
Is there anyway to connect to the 64 bits version of DI-API using JAVA? How can it be set up?
We also plan to connect to the service layer in this project, does anyone have a sample of how to connect to the service layer in JAVA.
In C# there is a sample in the forums that provides a base project that we can use to set up the connection to the service layer, is there anything similar for JAVA?
Thank you, best regards.
Hi David,
Have you checked the solution proposed in the following post?
https://answers.sap.com/questions/340266/java-jco-64bit-installed-but-the-system-in-looking.html
Regards,
Trinidad.
2020 Jan 21 8:36 AM
Hi David,
Have you checked the solution proposed in the following post?
https://answers.sap.com/questions/340266/java-jco-64bit-installed-but-the-system-in-looking.html
Regards,
Trinidad.
2020 Mar 25 11:50 AM
Just as a follow up for the following question:
We also plan to connect to the service layer in this project, does anyone have a sample of how to connect to the service layer in JAVA.
In C# there is a sample in the forums that provides a base project that we can use to set up the connection to the service layer, is there anything similar for JAVA?
I have found a project that does exactly that:
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |