on 05-26-2008 9:30 AM
Hi
I have written a java program and uses JCO to connect to the backend.
I have put JCO in the PATH of windows
Now when I try to run the program from the command line
java -jar C:\workspace_3.2\myFolder\MyJar.jar
I get the folowing exception
java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$ParameterList
Any suggestion why?
regards
yuval
Hi,
You should have too the files (sapjco.jar and sapjcorfc.dll)
in your current folder : C:\workspace_3.2\myFolder\
In the folder C:\Windows\System32 put the file librfc32.dll
The problem come from the SAP JCO jar library : cannot be find !
Best regards,
Mathieu
PS : reward points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mathieu,
I have put librfc32.dll in Windows/systems32 and
sapjco.jar together with sapjcorfc.dll in the same folder as my jar file.
Yet I get the same result.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$ParameterList
Very strange.
I even tried to putr it as environment variable.
Nothing
Thank you fior your assistance!
regards
yuval
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.