Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

A simple example of java connecting to SAP

Shulou Source: shulou.com Published: 2022-06-03 07:29:27 09月23日 Update

Recently, the sap interface needs to be called in the project. I read a lot of articles before debugging successfully. The summary is as follows:

Step 1: add sapjco3.rar to the project under classpath

Step 2: put sapjcorfc.dll and sapjco3.dll (64-bit dll when I use it) in the bin directory of tomcat, which was previously introduced in the lib directory. When I was testing the project, I used System.out.println (System.getProperty ("java.library.path")). The directory I found was under bin.

Step 3: write the connection tool class

Step 4: test the connection and get the table

Step 5: get the String string

Tags: Steps directories projects tests success characters strings tools interfaces articles examples Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn Microsoft Redmi Shulou Technology