on 05-23-2011 8:30 AM
Hi everybody,
i just wanted to deploy a Java application on a Windows Server 2008 64bit operating system and im getting a lot of exception.
Everything works fine on Windows XP 32bit and when im launching just the sapjco.jar it displays me this exception here:
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load mid
dleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Progra
m Files (x86)\Java\jdk1.6.0_22\bin\sapjcorfc.dll: Can't find dependent libraries
]. java.library.path [C:\Program Files (x86)\Java\jdk1.6.0_22\bin;.;C:\Windows\S
un\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Legato\nsr\bin;C:\Wi
ndows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPo
werShell\v1.0\;C:\Windows\System32\Windows System Resource Manager\bin;;C:\Windo
ws\idmu\common;C:\Program Files\Support Tools;C:\Program Files (x86)\Microsoft S
QL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\P
rogram Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsof
t SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\B
inn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\I
DE\;C:\Program Files (x86)\Java\jdk1.6.0_22\bin\]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.sap.mw.jco.About.<init>(About.java:33)
at com.sap.mw.jco.About.main(About.java:93)
and the sapjco gui says "Jco middleware: Library not found".
Im i right guessing that this could be a 32bit sapjco.jar problem?
Can i get a 64bit version of sapjco without having a SAP Service marketplace account?
Thanks
> i just wanted to deploy a Java application on a Windows Server 2008 64bit operating system and im getting a lot of exception.
> Everything works fine on Windows XP 32bit and when im launching just the sapjco.jar it displays me this exception here:
Are you intentionally using a 32bit JDK on a 64bit system?
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes i do.
Ok i have an SMP account now, and i downloaded different 64bit versions, 2,1.x and 3.x for 64bit, both should be Windows Server 2008 compatible referring to the documentation, but still the same error. Maybe the java lib path is wrong and java looks in the wrong directories for the dll's ?
Is this possible? How could i get and set the library path?
P.S. I have another Java project as one runnable jar and it uses a sapjco.jar too. The application works fine under Windows XP 32bit and Win Server 2008 64bit if i launch the runnable.jar, but when i extract the 2 filed (sapjco.jar sapjcorfc.dll) and start the sapjco.jar file i get the exact same error as described above.
Did you install the visual C++ runtime package mentioned in the note?
sapjcorfc.dll was built using a patched runtime libary, if you haven't installed the updated runtime the DLL can't be loaded. You can also check your Windows event log, if you get some "missing assembly" error then this is the case.
Markus
Ok,
let me summarize it again:
I got a "Windows Server 2008 R2 6.1" 64bit operating system with a Jdk 1.6 32bit installation and no matter what i try it will not work!
I've tried these versions:
sapjco21P_10-10002243_32Bit
sapjco21P_10-10002888_64BitItanium
sapjco21P_10-20001730_64Bitx86
But everytime the same error as described above!
I tried the JCo v3.x and it works at the first go but that doesnt help me because the application uses version 2.x
What else can i do?
hi,
i am having the same problems..
Solution,
Install JDK 1.5, in 1.6 doesn´t work..
Then sapjco 2.1.8..add into variable classpath sapjco.jar and into path the directory of java jdk..
in my case continues to fail because the version of jco is 2.1.8 and i can´t get the version 2.1.10 x86 - 32 bits.
does anyone have it? if so send it please
i am using tomcat and in the configurações i had to add 2 lines..
i can´t get the version 2.1.10 x86 - 32 bits.
does anyone have it? if so send it please
http://service.sap.com/connectors
--> Tools & Services
--> Download SAP JCo Release 2.1.10
Markus
HI,
i have also faced same issue...
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;]
Hello
If problems are encountered with the SAP JCO in general do proceed to SAP note 636912 - Frequent installation problems with SAP Java Connector
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please check you have correct JCO versions.
Reference note..
723562 SAP Java Connector: Configuration and Requirements
regards,
John Feely
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok thanks,
but what are these reference note numbers 723562 ? I did see them quite a few time now but i've never figured out what they mean. Are these references to other forum topics/thread or a FAQ document?
Sry i am complete rookie with SAP and stuff.
P.S. I just tried to register with SMP (with my company email adress) but i didnt get the activation email, is there a possiblity to resent this email? I dont think the email was blocked by the spam filter.
Thanks
Edited by: FESPECH on May 23, 2011 11:15 AM
Yes. These kinds of notes is just like FAQ about specific Topic, in this case yuo can say JCO Configuraton and requirements, how to do that and what possible error you can get at the time of installations and how you can resolve them.
>>P.S. I just tried to register with SMP (with my company email adress) but i didnt get the activation email, is there a possiblity to >>resent this email? I dont think the email was blocked by the spam filter.
You cannot generate your user ID on SMP, for this you need to contact your Administrator Team of your company and they can only generate your OSS id if yu have a SAP Customer or Partner
Regards,
Subhash
Ok thanks, im gonna ask my sys admin.
But i still dont get it with these notes, i put "JCO Configuraton and requirements" in the search box top right of the page, but i didnt get any proper results. I did the same thing in the Wiki -> no results.
and nowhere appeared this number 723562
I think i'm too stupid,....
>>I did the same thing in the Wiki -> no results.
You are looking in a wrong page. You need to enter note number under http://service.sap.com/notes , but this required the OSS id and password.
Regards,
Subhash
>>Can i get a 64bit version of sapjco without having a SAP Service marketplace account?
I dont think so. You have to download from SMP itself.
Regards,
Subhash
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 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.