cancel
Showing results for 
Search instead for 
Did you mean: 

Build log error

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 (1)

Answers (1)

jpenninkhof
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try not to call JCO directly when you're working on a SAP AS Java. Instead, use the JRA framework, a generic J2EE framework in which Jco is embedded.

To find more information on how to connect to R/3 using JRA, please have a look at:

http://help.sap.com/saphelp_nwce72/helpdata/en/0c/1f8342a7d30d53e10000000a155106/frameset.htm

Good luck!

Cheers,

Jan