Skip to Content
0
Former Member
Sep 27, 2011 at 10:53 AM

package com.sap.mw.jco does not exist

898 Views

Hi All,

i wrote a class where i have imported a pkg com.sap.mw.jco.* and called a method

JCo.Function func = getDefaultJCoConnection().getJCoFunction("CRM_ISA_ADD_DATA_SAVE");

But the NWDS shows an error that "The import com.sap.mw.jco cannot be resolved".

Then i have added sapjo.jar as external JAR in my crm/home/shr/ext. Due to this the import error has gone.

The real issue is:

when i do the build project. it failed. Following is the error which is generated in build.log

[javac] ERROR: C:\Users\mdeshpande.jdi\0\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\com\cf\isa\mod\demo3\backend\crm\Z_CustomBasketCRM.java:4: package com.sap.mw.jco does not exist

[javac] ERROR: import com.sap.mw.jco.*;

[javac] ERROR: ^

[javac] ERROR: C:\Users\mdeshpande.jdi\0\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\com\cf\isa\mod\demo3\backend\crm\Z_CustomBasketCRM.java:43: package JCO does not exist

[javac] ERROR: JCO.Function func = getDefaultJCoConnection().getJCoFunction("CRM_ISA_ADD_DATA_SAVE");

[javac] ERROR: ^

[javac] ERROR: C:\Users\mdeshpande.jdi\0\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\com\cf\isa\mod\demo3\backend\crm\Z_CustomBasketCRM.java:43: cannot access com.sap.mw.jco.JCO

[javac] ERROR: class file for com.sap.mw.jco.JCO not found

[javac] ERROR: JCO.Function func = getDefaultJCoConnection().getJCoFunction("CRM_ISA_ADD_DATA_SAVE");

[javac] ERROR: C:\Users\mdeshpande.jdi\0\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\com\cf\isa\mod\demo3\backend\crm\Z_CustomBasketCRM.java:49: cannot access com.sap.tc.logging.Category

[javac] ERROR: class file for com.sap.tc.logging.Category not found

[javac] ERROR: log.error(ex);

^

Please tell me is there anything i missed?

Thank you.

Regards,

MackDe