cancel
Showing results for 
Search instead for 
Did you mean: 

java Runtime Error:java.lang.classnotfoundexception

former_member215511
Participant
0 Kudos

Hi All,

I wrote a simple java progarm to connect to sap using jco connector and set classpath for spjco.jar also.it compiled with out errors but at runtime we got the error "java.lang.classnotfoundexception:com.sap.mw.jco.JCOException.

i copied the dll files librfc32.dll,sapjcorfc.dll in system32.

Please help me out.

Regards

Viswa

Accepted Solutions (0)

Answers (2)

Answers (2)

adren_dsouza
Participant
0 Kudos

Hi Viswa,

Add the jar file in the lib folder of the project , and refer it the build path of the project.

Regards ,

Adren

robertot4s
Active Participant
0 Kudos

Hi,

Add "com.sap.mw.jco.*;" at the beggining of your program. If you are using JCO 2.X, try with a higher version (3.0).

Regards,

Roberto