A simple example of java connecting to SAP
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