How do I resolve a middleware exception when porting JCo code from Windows to UNIX?
This is a common problem that usually indicates an incomplete installation of the JCo connector on the UNIX platform. You have probably already installed the sapjco.jar file into your Java classpath, but you have likely missed the native RFC library installation.
Depending on the UNIX OS, the file extensions will differ, however you must point the environment variable LD_LIBRARY_PATH to the JCo connector install directory. This directory should include the .o or .so library files used by the JCo middleware. The environment variable name varies by platform, so check the JCo install guide for your specific operatiing system.
Dig Deeper on SAP Java and J2EE
Related Q&A from Austin Sincock
How to provide an SAP R/3 4.5B application server with a Web service interface Continue Reading
A reader wants to know how to consume a Web service from an SAP 4.6c R/3 application server. Continue Reading
Are you a Java/J2EE developer interested in SAP? This expert tip lists the most relevant SAP modules and technologies for you. Continue Reading