on 01-15-2008 5:22 AM
Hi all,
I have developed a standalone java application which uses JCO to connect to SAP
I tried the application on my windows client and it works fine.
but when I tried to run the same application on the UNIX system:
HP-UX xbdo1 B.11.23 U ia64
and the jco I am using is :
.../sapjco-hpia64-2.1.8/sapjco.jar
It gives an error as:
Exception in thread "main" 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 [no sapjcorfc in java.library.path]. java.library.path [.:/if/script/xi/lib/sapjco-hpia64-2.1.8:/opt/java1.4/jre/lib/IA64N:/opt/java1.4/jre/lib/IA64N/server:/opt/java1.4/jre/../lib/IA64N:/usr/lib]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
at JConnector.<init>(JConnector.java:38)
at JConnector.main(JConnector.java:91)
The paths are mentioned as:
SHLIB_PATH = .:/if/script/xi/lib/sapjco-hpia64-2.1.8
CLASSPATH=.:/if/script/xi/lib/sapjco-hpia64-2.1.8/sapjco.jar
I checked, there is no version problem but I think the "jcolibpath" is not getting filled up(by refering to the "MiddlewareRFC.java")
Can anyone help me in this regards?
Ranjit
Hi,
Refer SAP Note 523346 - JCO crashes on HP-UX with Exception In Initializer Error
Hope this helps !
Regards
Srinivasan T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
Thank you for your response.
actually I have already seen this note
and it doesnt lead me to a solution
Actually to say the library is not getting loaded.
It means the file 'libsapjcorfc.so' is not getting loaded.
I have the latest sapjco.jar
Anyways thanks, let me create an OSS message.
Ranjit
Actually i was using the 64 bit processor,
and to run the java code on this kind of processor; the command should be:
java -d64 PRGNAME
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.