How do I resolve a middleware exception when porting JCo code from Windows to UNIX?
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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 interfacecontinue 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
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.