on 03-29-2007 7:03 AM
Hi,
This is my first time to use SAP Enterpirse Connector, I am using it to call
BAPI_FLIGHT_GETLIST from r/3 .
I have included relevant jar files aii_proxy_rt.jar
aii_util_misc.jar
SAPmdi.jar
sapjco.jar
in build path, but when i run application it is giving me error,
java.lang.NoClassDefFoundError
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:841)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3159)
at com.sap.java.sapcon.MyMain.main(MyMain.java:36)
Exception in thread "main"
Can anybody help me out?
regards,
Abhijeet
hi abhijeet,
RightClick on the ur java Project and select the Add Addtional Libraries, nd check 4 jar files u have mentioned, then it wil work, remove all the jars from the properties. If not useful leave it.
eswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, give us more details:
1. have u created DC or u use usual project (java project i guess)
2. u run your application under SAP WAS or as sandalong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in this case u should have enterprise application to be able to deploy your jar file.
So go to application-j2ee-engine.xml file and add references like:
<reference
reference-type="hard">
<reference-target
provider-name="sap.com"
target-type="library">com.sap.aii.util.misc</reference-target>
</reference>
also for:
com.sap.aii.proxy.framework
com.sap.mw.jco
com.sap.mdi
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.