-1

I create a JCo Adapter, and add the sapjco.jar to the server/lib directory and put the required dll file to windows\system32 directory. But it still report the exception as following in the server: Invocation of procedure 'invokeSAPFunction' caused java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Exception

What reason? Thanks a lot.

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
Shengwang
  • 35
  • 6
  • Anything else in the log? This is not enough to debug. – Idan Adar Jul 24 '15 at 15:05
  • Hi Idan, No any other log. I used in MF Studio 7.0. Here is the project the customer test: http://pan.baidu.com/s/1eQ51Mts, you can regenerate the issue – Shengwang Jul 25 '15 at 00:40
  • @Idan-Adar have you create a sample adatper to test this? The server only output the one-line log, it does not mean I don't want to provide the detail information. Here is the simple project for your reference: http://pan.baidu.com/s/1hq1uc52 – Shengwang Jul 25 '15 at 03:01
  • The website requires login. Upload somewhere else, like dropbox. Also provide the .jar file I need to put in server/lib. – Idan Adar Jul 25 '15 at 04:59
  • @IdanAdar I have uploaded it intp dropbox, you can get the project here: https://www.dropbox.com/s/feuijosi7ruv2ys/Adapters.zip?dl=0 The jar file has been included in the server/lib directory – Shengwang Jul 26 '15 at 09:08
  • I create standalone Java project it works, but the worklight doesn't work. – Shengwang Aug 03 '15 at 06:19

1 Answers1

0

The JCO libraries need to be put on a path where the JRE can read them. It looks like you have put them on the server path.

There should be installations instructions included when you downloaded the JCO libraries from SAP.

chrisjaun
  • 81
  • 2