cancel
Showing results for 
Search instead for 
Did you mean: 

could not initialize class jco

mspakis
Newcomer
0 Kudos

sapjco3.jar / sapjco3.dll

version upgrade issue

windows server 2016 standard

Web Application Server : JEUS

Among the Java library files, sapjco3.jar file was upgraded. From 3.0.17version to 3.1.8 version.
However, the following error appears:

 

java.lang.NoClassDefFoundError: Could not initialize class com.sap.conn.jco.JCo

at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:56) ~[sapjco3.jar:20230711 2000 [3.1.8 (2023-07-11)]]

at com.jmech.zrfc.RFCProcess.createClient(RFCProcess.java:228) ~[classes/:?]

at com.jmech.zrfc.func.ZPM_NON_NRC_WORDER_SEARCH.<init>(ZPM_NON_NRC_WORDER_SEARCH.java:31) ~[classes/:?]

at com.jmech.zrfc.SapOrderManager.getZPM_NON_NRC_WORDER_SEARCH(SapOrderManager.java:255) ~[classes/:?]

at com.jmech.batch.SyncExternalDataBatchController.batchCall_ZPM_NON_NRC_WORDER_SEARCH(SyncExternalDataBatchController.java:1144) ~[classes/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]

at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64) ~[spring-context-3.2.18.RELEASE.jar:3.2.18.RELEASE]

at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) [spring-context-3.2.18.RELEASE.jar:3.2.18.RELEASE]

at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [spring-context-3.2.18.RELEASE.jar:3.2.18.RELEASE]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_101]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_101]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]

at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]

 

 

Even though I set it to the same library location as before, this phenomenon occurs and I don't know why. Is this a java version issue?

Accepted Solutions (0)

Answers (2)

Answers (2)

HAL9000
Product and Topic Expert
Product and Topic Expert

In addition to Markus' answer, the JCo installation docu also says:

Do not copy the sapjco3.dll neither into the  {windows-dir}\system32  nor into the  {windows-dir}\SysWOW64  directory. This will break the operability of other JCo versions that are already installed on the same system. Furthermore you would risk that the current installation also would not work anymore, if the sapjco3.dll gets replaced in the respective Windows system directory in the future.

So, delete an old sapjco3.dll in these directories, if there is any.

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert

Hi, 

have you also updated the sapjco3.dll and followed the installation instructions for Windows? Note: On Windows you need to install the VS 2013 runtime redistributables in advance

Best regards,
Markus