• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connecting to SAP via JCO

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to connec to SAP using the JCO.createClient method and I can't get past this error:
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
/home/sxw29/jco/libsapjcorfc.so: ld.so.1: /vol/java/1.3.1/jre/../bin/../bin/sparc/native_threads/java: fatal: librfccm.so: open failed: No such file or directory
I am setting the java.library.path system property during server startup to point to directories with libsapjcorfc.so and librfccm.so. I am also pointing to /usr/lib to have ld.so.1 in the path as well, but I still get the above error. Does this error indicate that ld.so.1 or librfccm.so can't be found? Any ideas why not if they are in the path?
 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what you need is a shared libraray
it is like
---> means direction of calling
java ---> shared libraray( either .dll or .so)---> ABAP
you need include this .so file
and set library path
rgds
 
reply
    Bookmark Topic Watch Topic
  • New Topic