cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime exception while I connect to SAP using JCO

kiran_jakkaraju
Contributor
0 Kudos

I am getting this error when I am trying to write a Java DC Project using NWDS.

I have added all the JCO API DC to my project and all the classes are available in that.

I am getting runtime exception class not found - com.sap.mw.jco.JCO$Repository

I am deploying the java dc in the SAP J2EE Server by making Java Lib DC & deploy that.

Is it possible to connect to SAP R/3 from Java DC? or we need to have Portal Projects like PAR or Webdynpro only?

I want to use Background Callable object using GP API here.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Kiran,

Yes it is possible to use JCo in Java DCs.

Did you give the runtime dependecy for the library DC?

The third party libraries (jar files) should be added to the classpath not only during compile time, but also in run time.

Thanks,

Venkat

kiran_jakkaraju
Contributor
0 Kudos

Thank you Venkat. One more question - in one of my java library, I want to make a class a public part and I added as public part but it is not accessible from SAP Portal GP as Background callable object, getting message: cannot find this class name

Do you have any idea ?

see my post:

Thank you once again.

Answers (0)