on 10-12-2011 1:28 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.