cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JCo

Former Member
0 Kudos

I have a AIX 5.1 ppc64 machine which I am currenty using tomcat on. We want to use the SAP JCo to connect to out oracle instance for certain information. I'm trying to get the native libraries working to no avail.

1) The package that you download for the 64 aix machines did not have the right extension. I would always get an error stating:

Can't find library sapjcorfc (libsapjcorfc.a or .so) in java.library.path

2) I changed the suffix to ".a" and now I get the error:

Could not initialize dynamic link library sapjcorfc [/usr/lib/libsapjcorfc.a: load ENOEXEC on shared library(s)

Has anybody gotten this to work for a 64bit unix?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I discovered a way to fix this error:

load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

[/opt/sapjco/libsapjcorfc.so: load ENOEXEC on shared library

Answer: First, make sure you've downloaded the proper version of sapjco for your system including 32 or 64-bit. Also, make sure you copy lib files to right directory that get extracted with the sapjco file. If you download right file it will give you the so file. You should not have to rename any file (as I also originally tried).

For example on AIX: cp librfccm.o libsapjcorfc.o libsapjcorfc.so /usr/java14_64/jre/bin/

make sure permissions/owner/group are okay.

Former Member
0 Kudos

I'm also getting this error and, like the last post to the original message, would be interested in hearing a bit more detail. I'm on an IBM AIX 5.2 64 bit box. The JCO software we downloaded seems be for AIX_64 (correct), and puts libsapjcorfc.o in /usr/sap/SID/DVEBMGS00/j2ee/os_libs. The error messages I see in the log seem to indicate it wants to find a .so version of this library. Is this correct for IBM AIX? Anyone know how to resolve this?

Former Member
0 Kudos

In posting this question I have answered my own question.

I thought that I downloaded the correct JCo, but when posting this question I noticed the I downloaded the HP AIX, not the IBM AIX libraries. Once downloading the correct version everything ran as planned.

Former Member
0 Kudos

You say, with the right download all things work fine.

Since I have the same problem, could you please

describe the solution in detail:

Do you still rename the *.o files to *.a ?

Where are your libraries located ?

Former Member
0 Kudos

To add I have attached the response when I run the SAPJCo.jar from the unix command line. Hope this helps.

$ /usr/java14_64/bin/java sapjco.jar

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/lib/libsapjcorfc.a: load ENOEXEC on shared library(s) /usr/lib/libsapjcorfc.a]. java.library.path [/usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/lib]

at at com.sap.mw.jco.JCO.<clinit>(JCO.java:731).null(Unknown Source)

at java.lang.Class.forName1(Native Method)

at java.lang.Class.forName(Class.java:161)

at com.sap.mw.jco.About.<init>(About.java:33)

at com.sap.mw.jco.About.main(About.java:90)

-


SAP Java Connector (JCo)

Copyright (c) 2000-2004 SAP AG. All rights reserved.

Version Information

-


Java Runtime:

Operating System: AIX 5.1 for ppc64

Java VM: 1.4.0 IBM Corporation

Java Codepage: ISO8859_1

Versions:

JCo API: 2.1.3 (2004-03-08)

JCo middleware: Library not found

JCo library: Library not found

RFC library: Library not found

Paths:

JCo classes: System-defined path

JCo library: Library not found

RFC library: System-defined path

-


Manifest

-


Manifest-Version: 1.0

Implementation-Version: 20040430 0858 [2.1.3 (2004-03-08)]

Specification-Title: SAP Java Connector

Specification-Version: 2.1.3

Implementation-Title: com.sap.mw.jco

Main-Class: com.sap.mw.jco.About

Created-By: Ant 1.4.1

Implementation-Vendor-Id: com.sap

Implementation-Vendor: SAP AG, Walldorf

Specification-Vendor: SAP AG, Walldorf

-


Former Member
0 Kudos

One last thing. This is the package that I downloaded. Now that I look at it closer, I notice that it is for HP AIX 64 not IBM AIX 64. Big difference? I'm not sure.

sapjco-hp_64-2.1.3.tgz