Skip to Content

build log errors when using JCO 3

Hi Experts,

I added the SAPJCO.jar file in the JSF project and successfully added the JCO code in one of my class without any errors.

But when I am trying build, it is giving Build errors. I am using JCO 3 and also added the CLASSPath and PATH.

Also added the SAPJCO.dll file in system32 and jar file in project.

When I check in the build log. it is giving the below errors

\demo\jsf\ConnectSAP.java:6: package com.sap.conn.jco does not exist

javac ERROR: import com.sap.conn.jco.JCoDestinationManager;

javac ERROR: ^

[\demo\jsf\ConnectSAP.java:7: package com.sap.conn.jco does not exist

javac ERROR: import com.sap.conn.jco.JCoException;

javac ERROR: ^

javac ERROR: \demo\jsf\ConnectSAP.java:8: package com.sap.conn.jco does not exist

javac ERROR: import com.sap.conn.jco.JCoRepository;

javac ERROR: ^

javac ERROR: \demo\jsf\ConnectSAP.java:9: package com.sap.conn.jco.ext does not exist

javac ERROR: import com.sap.conn.jco.ext.DestinationDataProvider;

javac ERROR: ^

javac ERROR: \demo\jsf\ConnectSAP.java:21: cannot find symbol

javac ERROR: symbol : class JCoRepository

javac ERROR: location: class com.infy.demo.jsf.ConnectSAP

javac ERROR: private JCoRepository repos;

javac ERROR: ^

javac ERROR: \demo\jsf\ConnectSAP.java:22: cannot find symbol

javac ERROR: symbol : class JCoDestination

Please help me in this regard.

Thanks,

Raghu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 21, 2011 at 05:50 PM

    Hi,

    could you elaborate what you use as a developing environment (Eclipse, Netweaver Developer Studio, Netbeans, or IntelliJ)? Is the build log on your local machine or on a build server?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 22, 2011 at 04:32 AM

    Looking at the date of your post I suspect by now you must have solved your issue. If not, just check the jar files you're using: The code errors indicate that you expect JCo3, but per your comments you have only included the jar/dll file for JCo 2.x. I.e. for JCo3 you should have a sapjco3.jar and a sapjco3.dll (notice the additional 3).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 16, 2012 at 03:25 PM

    Raghu,

    I hope, below link should help you.

    Link Removed: asset deleted

    Thanks,

    Hamendra

    Edited by: Jason Lax on Feb 1, 2012 11:20 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 09, 2013 at 06:36 AM

    Hello,

    I am also getting the same error while using JCO3

      [javac] ERROR: C:\New Folder (3).jdi\LocalDevelopment\DCs\demo.sap.com\web_backendconnectivity\_comp\source\com\sap\flightdetails\FlightDetails.java:6: package com.sap.conn.jco does not exist

         [javac] ERROR: import com.sap.conn.jco.AbapException;

         [javac] ERROR:                        ^

         [javac] ERROR: C:\New Folder (3).jdi\LocalDevelopment\DCs\demo.sap.com\web_backendconnectivity\_comp\source\com\sap\flightdetails\FlightDetails.java:7: package com.sap.conn.jco does not exist

         [javac] ERROR: import com.sap.conn.jco.JCoDestination;

         [javac] ERROR:                        ^

         [javac] ERROR: C:\New Folder (3).jdi\LocalDevelopment\DCs\demo.sap.com\web_backendconnectivity\_comp\source\com\sap\flightdetails\FlightDetails.java:8: package com.sap.conn.jco does not exist

         [javac] ERROR: import com.sap.conn.jco.JCoDestinationManager;

         [javac] ERROR:                        ^

         [javac] ERROR: C:\New Folder (3).jdi\LocalDevelopment\DCs\demo.sap.com\web_backendconnectivity\_comp\source\com\sap\flightdetails\FlightDetails.java:9: package com.sap.conn.jco does not exist

         [javac] ERROR: import com.sap.conn.jco.JCoFunction;

         [javac] ERROR:                        ^

         [javac] ERROR: C:\New Folder (3).jdi\LocalDevelopment\DCs\demo.sap.com\web_backendconnectivity\_comp\source\com\sap\flightdetails\FlightDetails.java:10: package com.sap.conn.jco does not exist

         [javac] ERROR: import com.sap.conn.jco.JCoTable;

         [javac] ERROR:                        ^

         [javac] ERROR: C:\New Folder (3).jdi\LocalDevelopment\DCs\demo.sap.com\web_backendconnectivity\_comp\source\com\sap\flightdetails\FlightDetails.java:11: package com.sap.conn.jco.ext does not exist

         [javac] ERROR: import com.sap.conn.jco.ext.DestinationDataProvider;

         [javac] ERROR: 

    Add comment
    10|10000 characters needed characters exceeded