cancel
Showing results for 
Search instead for 
Did you mean: 

build log errors when using JCO 3

former_member206159
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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: 

former_member193379
Active Contributor
0 Kudos

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

HaraldBoeing
Explorer
0 Kudos

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).

Former Member
0 Kudos

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?