title: Connect Sap System
body: <p>I am working in a Java EE project that integrates with SAP system, and I am trying to run a simple standalone java class that calls a RFC. My snippet of code is </p>
  
  <pre><code>JCO.Client mConnection =
      JCO.createClient("dummy", // SAP client
               "dummy", // userid
               "dummy", // password
                   "dummy", // language (null for the default language)
                   "dummy", // application server host name
                   "dummy"); // system number
  </code></pre>
  
  <p>It throws the following exception <strong>"JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
  JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc"</strong>
  The only library that i have in this moment is <strong>sapjco.jar</strong>, i have seen in some foruns that i need this two libraries (librfc32.dll , sapjcorfc.dll) to be able to run this code in an standalone application. Is that right ? Where can i get this two libraries ? The last one is to put in the same folder than the sapjco.jar, is that ok to ?</p>
  
  <p>If I can not run this in my local computer I will have to deploy the application every time that I want to test it :(</p>