on 10-12-2011 1:31 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
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.