on 02-06-2006 7:42 AM
Hi,everyone.
I try to do some exercise about Jco.
But i got trouble on mu first step.
When i call a Client.connection();
I got a error message:
<i>java.lang.NoClassDefFoundError
at com.sap.mw.jco.MiddlewareJRfc$Client.connect (MiddlewareJRfc.java:831)
at com.sap.mw.jco.JCO$Client.connect (JCO.java:3006)
at JCoTest.main(JCoTest.java:24)
Exception in thread "main"</i>
Follows is my codes:
mConnection=JCO.createClient("107","NW01","6czrbe5s","EN","http://140.115.77.xx","00");
mConnection.connect();
System.out.println(mConnection.getAttributes());
mConnection.disconnect();
Anyone can solve my problem? Thx a lot~~~
Hi Louis,
Is this a console application or one in NWDS?.
have u set class path for sapjco.jar?.
just check u have set classpath.
Regards
Kishor Gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Louis,
in NWDS, as it is customized Eclipse 2.11 IDE, the usual procedures apply, how to reference jars in your project.
Either you copy the jars inside your project's dir structure and do a "local jar" reference or you leave the jars, where you installed them and do a "external jar" reference. What did you do?
Regards
Gregor
Hi Louis,
i had faced the same problem.
but , could realise that ,
associated with the sapjco.jar, these two dlls (librfc32.dll ,sapjcorfc.dll) will be there, and that combination will work if and only if the entire things(sapjco.jar,and the dlls ) are associated with the same package.(i mean in that zip where jar files and dlls )..
just take the back up of the sapjco.jar file from the NWDS ,
replace with u got from the package,
then copy the dlls into sys32 folder from the zip..
i think it will work.
i tried in this way and worked...
Regards
Kishor Gopinathan
Right, try setting 'sapjco.jar' into your classpath.
Moreover, please comfirm that you have PDK's required DLLs:
librfc32.dll
sapjcorfc.dll
into your <windows>\system32 folder.
If still facing problem, then mention.
Have a great day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.