Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JAVA JDK 13 + DI-API 64 bits

davdua1991
Discoverer
0 Likes
1,832

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.

2 REPLIES 2
Read only

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Likes
1,151

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.

Read only

davdua1991
Discoverer
0 Likes
1,151

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:

https://github.com/SAP/SAP-Business-One-Service-Layer-SDK