on 01-06-2014 2:16 PM
Hi ,
i am using Windows 7 64 bit OS.
I want to Connect SAP from JAVA by using sap JCo Package(2.x).
So in my app i have added sapjco.jar file in lib folder and also added
sapjcorfc.dll file in lib folder and librfc32.dll file in System 32 folder.
so i am getting this type issue...i had researched a lot not able to find exactly.
Please give some suggestion..
Error 500: 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 [sapjcorfc (Not found in java.library.path)]. java.library.path [D:\IBM\WebSphere\AppServer\java\jre\bin\compressedrefs;D:\IBM\WebSphere\AppServer\java\jre\bin;.;D:\IBM\WebSphere\PortalServer/lwo/prereq.odc/shared/app/oiexport;D:\IBM\WebSphere\AppServer\bin;D:\IBM\WebSphere\AppServer\java\bin;D:\IBM\WebSphere\AppServer\java\jre\bin;C:/Program Files (x86)/IBM/SDP/jdk/jre/bin/j9vm;C:/Program Files (x86)/IBM/SDP/jdk/jre/bin;C:/Program Files (x86)/IBM/SDP/jdk/jre/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\IBM\SDP;]
try to run procmon.exe (process monitor from www.sysinternals.com) in order to find out which DLL is searched where during startup of the J2EE engine.
regards
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Roman
I have used Latest version jar file and dll file.
but still same issue,if i use RAD tool it is connecting to SAP.But i am using Netbeans IDE.
From this Console I have added sapjcorfc.dll and librfc32.dll in system 32 folder and windows folder.
and also msvcr72.dll and msvcp71.dll in windows folder bcoz of dependency( i Don't know but i added.)
Could not initialize dynamic link library sapjcorfc [C:\Windows\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\Program Files (x86)\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32;.]
As already mentioned check the following SAP KBA 1953762 - Hints for frequent installation errors with SAP Java Connector(JCo).
Hi,
Please check below notes maybe clue you in to solution.
1953762 - Hints for frequent installation errors with SAP Java Connector(JCo)
1581332 - initial load of abap server fails due to sapjcorfc error
1550386 - RFC fails to initialize dynamic link library sapjcorfc
1577779 - Java applications fail with loading middleware layer exceptions
BR,
K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you verified that your environment variables are set correctly? Have you also tried to manually set them for user and/or system?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.