on 08-11-2008 8:14 PM
Hello Guys,
I'm new to SAP as well to SAPJCo. I just have fair background of Java.
I'm trying to implement a Listener to receive IDOCS from SAP system.
I am using sapjco.jar...for the purpose
dummy code is below
import com.sap.mw.*;
import com.sap.conn.jco.*;
public class SapListener extends JCO.Server {
...... }
I have included the jar file in the build path. It is not recognizing the first import statement when i compile. The second import statement is being recognized.
When I extracted all the contents of the sapjco.jar I didnt find any " mw " package in there.
Any idea as to what is wrong??
Hi,
Following are the steps on a windows machine
To install JCo for Windows unzip the appropriate distribution package into an arbitrary directory {sapjco-install-path}.
If you already have an older librfc32.dll in the {windows-dir}\system32 directory, please replace it with the one that comes with JCo.
Then add {sapjco-install-path} to the PATH environment variable.
Finally, add {sapjco-install-path}\sapjco.jar to your CLASSPATH environment variable.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, you should actually be using the sapidocjco.jar instead of the sapjco.jar to work with IDocs (sending as well as recieving). The sapidocjco needs the sapjco jar in the background though. You can find the sapidocjco.jar also in the service marketplace where you found the sapjco.jar.
As far as the missing "mw" package is concerned, you probably haven't set the sapjco.jar in your classpath correctly. The problem has nothing to do with the dlls lying under System32 although that is something which you need to take care of too.
T00th
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not exactly sure what you mean by "imported" the jars in Eclipse - I use NetBeans not Eclipse. What I meant is you need to add the jars in the buildpath, not the classpath. My bad.
Generally you find the option of adding jars to the build path by right clicking the project and then you should see some place where you can add jars to the build path. Make sure your sapjco.jar lies there. Then refresh/reload the project and you should be on the right track.
T00th
Hi,
May be of use for you
http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
Regards
Ayyapparaj
Once again thanks guys....
I am using a Jar file named as .... sapjco3 (excutable jar file)
The Content Structure sapjco3 is as follows (after extracting using winrar)
sapjco3
then u have ' com ' and ' META-INF '
inside com u have ' sap ' and within sap u have ' conn ' , ' i18n ' and ' tc ' (no mw)
Well, there you go. There is no sapjco3 jar. There is always just the sapjco jar and it has no conn, i18n and tc in it. You have the wrong jar.
Download the sapjco.jar from http://service.sap.com/connectors and try again. And like I said, for IDocs, you will need the sapidocjco.jar which is also available at the location above.
T00th
Both sapjco.jar (version 2.x) and sapjco3.jar (version 3.0) are available on the SAP Marketplace (http://service.sap.com/connectors).
JCo 3.x has changed incompatibly compared to previous versions. To upgrade from an older version of SAP JCo, please consult the migration guide and the documentation.
- Raj
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.