• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic